-
Notifications
You must be signed in to change notification settings - Fork 4.6k
codes: update docstring to indicate expected usage #6701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,13 @@ import ( | |
| "strconv" | ||
| ) | ||
|
|
||
| // A Code is an unsigned 32-bit error code as defined in the gRPC spec. | ||
| // A Code is a status code according to the gRPC spec: | ||
| // | ||
| // https://github.com/grpc/grpc/blob/master/doc/statuscodes.md | ||
| // | ||
| // Only the codes defined as consts in this package are valid codes. Do not use | ||
| // other code values. Behavior and interopability are implementation-specific | ||
| // and not guaranteed. | ||
|
||
| type Code uint32 | ||
|
|
||
| const ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easwar made me switch urls to a certain format: https://github.com/grpc/grpc-go/blob/master/xds/internal/balancer/wrrlocality/balancer.go#L19 (I think this is a strong heuristic of .go files). Can you please switch this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done