diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-06-11 18:15:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-06-11 18:56:22 +0800 |
commit | 99483e85b92e07078291442bf1cd4c0db22a262d (patch) | |
tree | 4447ef6273f11e11653beb316b8904c5d9ef0851 /rpc/server.go | |
parent | 1d666cf27ec366a967d9afa0e8a370cb4cf33481 (diff) | |
download | go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.tar go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.tar.gz go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.tar.bz2 go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.tar.lz go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.tar.xz go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.tar.zst go-tangerine-99483e85b92e07078291442bf1cd4c0db22a262d.zip |
rpc: support returning nil pointer big.Ints (null)
Diffstat (limited to 'rpc/server.go')
-rw-r--r-- | rpc/server.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rpc/server.go b/rpc/server.go index 2b7393dd2..8925419fe 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -313,7 +313,6 @@ func (s *Server) handle(ctx context.Context, codec ServerCodec, req *serverReque if len(reply) == 0 { return codec.CreateResponse(req.id, nil), nil } - if req.callb.errPos >= 0 { // test if method returned an error if !reply[req.callb.errPos].IsNil() { e := reply[req.callb.errPos].Interface().(error) |