diff options
author | Janoš Guljaš <janos@users.noreply.github.com> | 2018-02-23 00:39:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-02-23 00:39:28 +0800 |
commit | 45352477933d71ec5055504da74547b0cdf0274b (patch) | |
tree | 2809cad43d38a91a1f1c23786b9cd5b1c0956c2c /rpc | |
parent | 44c393607e77c3708cc9c08f64d187a8bca21bf7 (diff) | |
download | go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.tar go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.tar.gz go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.tar.bz2 go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.tar.lz go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.tar.xz go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.tar.zst go-tangerine-45352477933d71ec5055504da74547b0cdf0274b.zip |
rpc: set rpcRequest.service as methodNotFoundError.service value (#16163)
RPC Server readRequest method sets the serverRequest error service
value as the rpcRequest.method and this change sets it to the right
service value.
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/server.go b/rpc/server.go index 30c288349..11373b504 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -421,7 +421,7 @@ func (s *Server) readRequest(codec ServerCodec) ([]*serverRequest, bool, Error) } } } else { - requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{r.method, r.method}} + requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{r.service, r.method}} } continue } |