From cbe882a20ed8aa708845bf806315772701b12c59 Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Wed, 14 Mar 2018 21:45:37 +0100 Subject: [PATCH] ethclient: add Close method Closes the underlying RPC connection. --- ethclient/ethclient.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 8daf982f3c..31047fc20a 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -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.