diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-01-28 00:01:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-02-03 16:35:59 +0800 |
commit | 5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c (patch) | |
tree | ae78c0511eaead00800acc268d2782cb2ceef9b0 /rpc/server.go | |
parent | a8fd0de0d344ce3828901fa47204a68971184684 (diff) | |
download | go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.tar go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.tar.gz go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.tar.bz2 go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.tar.lz go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.tar.xz go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.tar.zst go-tangerine-5da7ec7c18b0e37cec0950e9656f6cdddc1ae60c.zip |
cmd, eth, rpc: fix some RPC issues with pending blocks
Diffstat (limited to 'rpc/server.go')
-rw-r--r-- | rpc/server.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/rpc/server.go b/rpc/server.go index 0b93a4e64..5b88d843a 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -332,7 +332,6 @@ func (s *Server) handle(ctx context.Context, codec ServerCodec, req *serverReque return res } } - return codec.CreateResponse(req.id, reply[0].Interface()) } @@ -344,7 +343,6 @@ func (s *Server) exec(ctx context.Context, codec ServerCodec, req *serverRequest } else { response = s.handle(ctx, codec, req) } - if err := codec.Write(response); err != nil { glog.V(logger.Error).Infof("%v\n", err) codec.Close() |