diff options
author | Eli Bendersky <eliben@golang.org> | 2021-09-14 15:02:55 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2021-09-18 06:04:41 +0000 |
commit | c894b442d1e5e150ad33fa3ce13dbfab1c037b3a (patch) | |
tree | 1ece4f50b5d544bbc9935587a43d713e9b113de7 /src/cmd/compile/internal/deadcode/deadcode.go | |
parent | 4b654c0eeca65ffc6588ffd9c99387a7e48002c1 (diff) | |
download | go-c894b442d1e5e150ad33fa3ce13dbfab1c037b3a.tar.gz go-c894b442d1e5e150ad33fa3ce13dbfab1c037b3a.zip |
net/rpc: remove warnings on incompatible methods at registration
When registering an RPC server, the type being registered may
have additional methods that are not meant to be exposed as
RPC endpoints. Remove the warnings net/rpc produces in
this case. The functionality to report warnings is kept in the code
with a compile-time constant that can be enabled for debugging.
The documentation of net/rpc states that only methods
satisfying a set of criteria will be made available, while other
methods will be ignored.
Fixes #19957
Change-Id: I5f8a148b4be1fdfffb2cd2029871193eaf24b751
Reviewed-on: https://go-review.googlesource.com/c/go/+/350009
Reviewed-by: Daniel Lublin <daniel@lublin.se>
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/deadcode/deadcode.go')
0 files changed, 0 insertions, 0 deletions