Skip to content

Commit 4535247

Browse files
janoskaralabe
authored andcommitted
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.
1 parent 44c3936 commit 4535247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rpc/server.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func (s *Server) readRequest(codec ServerCodec) ([]*serverRequest, bool, Error)
421421
}
422422
}
423423
} else {
424-
requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{r.method, r.method}}
424+
requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{r.service, r.method}}
425425
}
426426
continue
427427
}

0 commit comments

Comments
 (0)