diff options
author | kiel barry <kiel.j.barry@gmail.com> | 2018-05-03 16:41:22 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-03 16:41:22 +0800 |
commit | 2ad511ce0912194e9f30010f01fc338c585f8634 (patch) | |
tree | a3f20b6850a40c6b8b1229f8c5ac239153475dc0 /rpc/http.go | |
parent | 541f299fbbf3c4f4f0ee49c5ecb832f08cc22656 (diff) | |
download | go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.tar go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.tar.gz go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.tar.bz2 go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.tar.lz go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.tar.xz go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.tar.zst go-tangerine-2ad511ce0912194e9f30010f01fc338c585f8634.zip |
rpc: golint error with context as last parameter (#16657)
* rpc/*: golint error with context as last parameter
* Update json.go
Diffstat (limited to 'rpc/http.go')
-rw-r--r-- | rpc/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/http.go b/rpc/http.go index 0c2e060fb..feaa7348c 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -191,7 +191,7 @@ func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { defer codec.Close() w.Header().Set("content-type", contentType) - srv.ServeSingleRequest(codec, OptionMethodInvocation, ctx) + srv.ServeSingleRequest(ctx, codec, OptionMethodInvocation) } // validateRequest returns a non-zero response code and error message if the |