aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-31 15:25:35 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-31 15:25:35 +0200
commita338905a7f8a2206161cc15f07bda872b9bfc09c (patch)
tree173d982f38212a3c6301b61fbeddd2c92a171d6f /client
parentfa0b0efc14f84ff87789cabe0010f3240245407c (diff)
client: Close() shouldn't return an error
Diffstat (limited to 'client')
-rw-r--r--client/client.go3
1 files changed, 1 insertions, 2 deletions
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.