Skip to content

Commit

Permalink
Update private/bufpkg/bufconnect/interceptors.go
Browse files Browse the repository at this point in the history
Co-authored-by: Edward McFarlane <[email protected]>
  • Loading branch information
doriable and emcfarlane authored Nov 25, 2024
1 parent 37d1a91 commit 76f5a7f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions private/bufpkg/bufconnect/interceptors.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,7 @@ func NewDebugLoggingInterceptor(container appext.LoggerContainer) connect.UnaryI
startTime := time.Now()
resp, err := next(ctx, req)
duration := time.Since(startTime)
var status connect.Code
if err != nil {
if connectErr := new(connect.Error); errors.As(err, &connectErr) {
status = connectErr.Code()
}
}
status = connect.CodeOf(err)

Check failure on line 166 in private/bufpkg/bufconnect/interceptors.go

View workflow job for this annotation

GitHub Actions / test

undefined: status

Check failure on line 166 in private/bufpkg/bufconnect/interceptors.go

View workflow job for this annotation

GitHub Actions / buf-binary-size

undefined: status

Check failure on line 166 in private/bufpkg/bufconnect/interceptors.go

View workflow job for this annotation

GitHub Actions / test-previous (1.22.x)

undefined: status

Check failure on line 166 in private/bufpkg/bufconnect/interceptors.go

View workflow job for this annotation

GitHub Actions / lint

undefined: status

Check failure on line 166 in private/bufpkg/bufconnect/interceptors.go

View workflow job for this annotation

GitHub Actions / test

undefined: status
var responseSize int
if resp != nil && resp.Any() != nil {
msg, ok := resp.Any().(proto.Message)
Expand Down

0 comments on commit 76f5a7f

Please sign in to comment.