Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: SriHarshaBS001 <SriHarshaBS009@gmail.com>
  • Loading branch information
SriHarsha001 committed Sep 7, 2023
1 parent 9dc485f commit a7dc3db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/pkg/proxy/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ func (p *Proxy) Connect(ctx context.Context, state request.Request, opts Options

// Only if response message id matches the request message id - check for truncation and truncate response.
if ret != nil && (state.Req.Id == ret.Id) {
// Check if the response should be truncated based on the error.
if shouldTruncateResponse(err) {
// Truncate the response.
ret = truncateResponse(ret)
break
}
Expand Down

0 comments on commit a7dc3db

Please sign in to comment.