aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-03 16:41:22 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-03 16:41:22 +0800
commit2ad511ce0912194e9f30010f01fc338c585f8634 (patch)
treea3f20b6850a40c6b8b1229f8c5ac239153475dc0 /rpc/http.go
parent541f299fbbf3c4f4f0ee49c5ecb832f08cc22656 (diff)
downloadgo-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.go2
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