Skip to content

Commit cbe882a

Browse files
committed
ethclient: add Close method
Closes the underlying RPC connection.
1 parent ea4ced5 commit cbe882a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ethclient/ethclient.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ func NewClient(c *rpc.Client) *Client {
5555
return &Client{c}
5656
}
5757

58+
func (ec *Client) Close() {
59+
ec.c.Close()
60+
}
61+
5862
// Blockchain Access
5963

6064
// BlockByHash returns the given full block.

0 commit comments

Comments
 (0)