浏览代码

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
 		}