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:
committed by
Péter Szilágyi
parent
541f299fbb
commit
2ad511ce09
@ -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
|
||||
|
Reference in New Issue
Block a user