node: remove unused error return from Attach (#27450)
node: Delete the unused error from return parameters of Node.Attach() func
This commit is contained in:
+2
-2
@@ -616,8 +616,8 @@ func (n *Node) RegisterHandler(name, path string, handler http.Handler) {
|
||||
}
|
||||
|
||||
// Attach creates an RPC client attached to an in-process API handler.
|
||||
func (n *Node) Attach() (*rpc.Client, error) {
|
||||
return rpc.DialInProc(n.inprocHandler), nil
|
||||
func (n *Node) Attach() *rpc.Client {
|
||||
return rpc.DialInProc(n.inprocHandler)
|
||||
}
|
||||
|
||||
// RPCHandler returns the in-process RPC request handler.
|
||||
|
||||
Reference in New Issue
Block a user