Преглед изворни кода

rpc: set rpcRequest.service as methodNotFoundError.service value (#16163)

RPC Server readRequest method sets the serverRequest error service
value as the rpcRequest.method and this change sets it to the right
service value.
Janoš Guljaš пре 7 година
родитељ
комит
4535247793
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      rpc/server.go

+ 1 - 1
rpc/server.go

@@ -421,7 +421,7 @@ func (s *Server) readRequest(codec ServerCodec) ([]*serverRequest, bool, Error)
 					}
 				}
 			} else {
-				requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{r.method, r.method}}
+				requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{r.service, r.method}}
 			}
 			continue
 		}