mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
ethclient: add Close method
Closes the underlying RPC connection.
This commit is contained in:
parent
ea4ced5bb0
commit
cbe882a20e
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ func NewClient(c *rpc.Client) *Client {
|
|||
return &Client{c}
|
||||
}
|
||||
|
||||
func (ec *Client) Close() {
|
||||
ec.c.Close()
|
||||
}
|
||||
|
||||
// Blockchain Access
|
||||
|
||||
// BlockByHash returns the given full block.
|
||||
|
|
|
|||
Loading…
Reference in a new issue