Explorar el Código

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š hace 7 años
padre
commit
4535247793
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 		}