pkg/rpc/rpcstatus: Fix return type (#3162)
This commit is contained in:
parent
1db4251234
commit
94c7df0d6e
@ -47,7 +47,7 @@ func Code(err error) StatusCode {
|
||||
case context.DeadlineExceeded:
|
||||
return DeadlineExceeded
|
||||
default:
|
||||
return drpcerr.Code(err)
|
||||
return StatusCode(drpcerr.Code(err))
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user