From 8058da8bbe38d7a010b0b2878f6f710d6d078679 Mon Sep 17 00:00:00 2001 From: a <a@a.a> Date: Wed, 2 Nov 2022 04:45:48 -0500 Subject: [PATCH] fix major bug --- json.go | 1 - 1 file changed, 1 deletion(-) diff --git a/json.go b/json.go index 85ce371..c1a210c 100644 --- a/json.go +++ b/json.go @@ -272,7 +272,6 @@ func (c *jsonCodec) closed() <-chan any { // is called. Any non-JSON-RPC messages in the input return the zero value of // jsonrpcMessage. func parseMessage(raw json.RawMessage) ([]*jsonrpcMessage, bool) { - if !isBatch(raw) { msgs := []*jsonrpcMessage{{}} json.Unmarshal(raw, &msgs[0]) -- GitLab