-
Notifications
You must be signed in to change notification settings - Fork 70
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
==========================================
+ Coverage 73.72% 73.92% +0.19%
==========================================
Files 119 122 +3
Lines 6277 6404 +127
==========================================
+ Hits 4628 4734 +106
- Misses 1353 1368 +15
- Partials 296 302 +6 ☔ View full report in Codecov by Sentry. |
reader, err := gzip.NewReader(bytes.NewReader(message)) | ||
if err != nil { | ||
h.logger.Error("error creating gzip reader", zap.Error(err)) | ||
return resp, nil, err | ||
} | ||
defer reader.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the defer need to happen before the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is an error, the reader that will be returned is nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, would add the test case for pongs
Closes BLO-736