aboutsummaryrefslogtreecommitdiff
path: root/rpc/server.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-05-24 18:55:31 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-05-24 18:55:31 +0300
commit281eda83c9f4bcb06318444df3574df0840205fa (patch)
tree149751a19e3ccb73e18355e74aa0ec29944b2278 /rpc/server.go
parent4a81eff217c40c459c9a9ed4f318b4dd9bc5ee8a (diff)
Fix send invalid jsonv1.1.1
Diffstat (limited to 'rpc/server.go')
-rw-r--r--rpc/server.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/rpc/server.go b/rpc/server.go
index b2f6158..f39bdaa 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -83,11 +83,6 @@ func (r *RpcServer) Resolve(ctx context.Context, rd io.Reader, w io.Writer, para
for {
req := new(RpcRequest)
if err := dec.Decode(req); err != nil {
- if err == io.EOF {
- break
- }
- r.logger.Logf("Can't read body: %v", err)
- WriteError(ErrCodeParseError, enc)
break
}
exec := func() {