Skip to content

Commit

Permalink
fix: Parse to correct uint32 type (#8177)
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <jann@mistrust.net>
  • Loading branch information
jannfis committed Jan 14, 2022
1 parent 35f5b32 commit 0b9b7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiclient/grpcproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (c *client) executeRequest(fullMethodName string, msg []byte, md metadata.M
}
var code codes.Code
if statusStr := resp.Header.Get("Grpc-Status"); statusStr != "" {
statusInt, err := strconv.Atoi(statusStr)
statusInt, err := strconv.ParseUint(statusStr, 10, 32)
if err != nil {
code = codes.Unknown
} else {
Expand Down

0 comments on commit 0b9b7c3

Please sign in to comment.