diff --git a/protocol/json/client.go b/protocol/json/client.go index bf52930..4330e01 100644 --- a/protocol/json/client.go +++ b/protocol/json/client.go @@ -166,6 +166,7 @@ func retainClientRequest(method string, params interface{}, id interface{}) *cli cr = v.(*clientRequest) } + cr.Version = Version cr.Method = method cr.Params = params cr.ID = id @@ -174,6 +175,7 @@ func retainClientRequest(method string, params interface{}, id interface{}) *cli } func releaseClientRequest(cr *clientRequest) { + cr.Version = "" cr.Method = "" cr.Params = nil cr.ID = nil