From 9860c8fee14bfd4f6f14b62ee6d8e938a485387a Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 3 May 2017 14:33:00 -0400 Subject: [PATCH] rpc: cleanup some comments [ci skip] --- rpc/lib/server/handlers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rpc/lib/server/handlers.go b/rpc/lib/server/handlers.go index 588af2765..f780fba44 100644 --- a/rpc/lib/server/handlers.go +++ b/rpc/lib/server/handlers.go @@ -14,7 +14,6 @@ import ( "github.com/gorilla/websocket" "github.com/pkg/errors" - //wire "github.com/tendermint/go-wire" types "github.com/tendermint/tendermint/rpc/lib/types" cmn "github.com/tendermint/tmlibs/common" @@ -180,8 +179,7 @@ func arrayParamsToArgs(rpcFunc *RPCFunc, params []*json.RawMessage, argsOffset i return values, nil } -// raw is unparsed json (from json.RawMessage). It either has -// and array or a map behind it, let's parse this all without resorting to wire... +// raw is unparsed json (from json.RawMessage) encoding either a map or an array. // // argsOffset should be 0 for RPC calls, and 1 for WS requests, where len(rpcFunc.args) != len(rpcFunc.argNames). // Example: @@ -277,7 +275,6 @@ func httpParamsToArgs(rpcFunc *RPCFunc, r *http.Request) ([]reflect.Value, error continue } - // Pass values to go-wire values[i], err = _jsonStringToArg(argType, arg) if err != nil { return nil, err