Skip to content

Commit a56141b

Browse files
authored
Return if the client message is not decodable
1 parent 1184c48 commit a56141b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func (p *Plugin) OnTrafficFromClient(ctx context.Context, req *v1.Struct) (*v1.S
102102
req, err := postgres.HandleClientMessage(req, p.Logger)
103103
if err != nil {
104104
p.Logger.Debug("Failed to handle client message", ErrorField, err)
105+
return req, err
105106
}
106107

107108
// Get the client request from the GatewayD request.

0 commit comments

Comments
 (0)