rpc: golint error with context as last parameter (#16657)

* rpc/*: golint error with context as last parameter

* Update json.go
This commit is contained in:
kiel barry
2018-05-03 01:41:22 -07:00
committed by Péter Szilágyi
parent 541f299fbb
commit 2ad511ce09
3 changed files with 6 additions and 6 deletions

View File

@ -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