Skip to content

Commit

Permalink
ethclient: add Close method
Browse files Browse the repository at this point in the history
Closes the underlying RPC connection.
  • Loading branch information
asymmetric committed Mar 16, 2018
1 parent ea4ced5 commit cbe882a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cbe882a

Please sign in to comment.