From a338905a7f8a2206161cc15f07bda872b9bfc09c Mon Sep 17 00:00:00 2001 From: hozan23 Date: Fri, 31 May 2024 15:25:35 +0200 Subject: client: Close() shouldn't return an error --- client/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client') diff --git a/client/client.go b/client/client.go index 7ad64fd..7379e43 100644 --- a/client/client.go +++ b/client/client.go @@ -70,7 +70,7 @@ func NewRPCClient(config RPCClientConfig) (*RPCClient, error) { } // Close closes the underlying websocket connection and stop the receiving loop. -func (client *RPCClient) Close() error { +func (client *RPCClient) Close() { log.Warn("Close the rpc client...") client.stop_signal <- struct{}{} @@ -81,7 +81,6 @@ func (client *RPCClient) Close() error { client.request_chans.clear() client.subscriptions.clear() - return nil } // Call sends an RPC call to the server with the specified method and parameters. -- cgit v1.2.3