pkg/rpc/rpcstatus: Fix return type (#3162)

This commit is contained in:
Isaac Hess 2019-10-02 14:46:18 -06:00 committed by GitHub
parent 1db4251234
commit 94c7df0d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ func Code(err error) StatusCode {
case context.DeadlineExceeded:
return DeadlineExceeded
default:
return drpcerr.Code(err)
return StatusCode(drpcerr.Code(err))
}
}