Closed stan-stately closed 3 months ago
Connect has no OK
code. This is intentional since the code is only used to classify errors. Checking if the error is nil or not is the way to determine if an operation was okay.
This is not intended to be used in exactly the same fashion as grpc-go's API. We can clarify this further in the doc comments for connect.CodeOf
.
thankyou
Describe the bug
connect.CodeOf(nil)
returnsconnect.CodeUnknown
which is different to grpc which returnscodes.OK
To Reproduce
You can repro with the following test:
Additional context