diff --git a/api/rest/client/lbclient.go b/api/rest/client/lbclient.go index 1de307e4..8b2be3da 100644 --- a/api/rest/client/lbclient.go +++ b/api/rest/client/lbclient.go @@ -4,9 +4,9 @@ import ( "context" "sync/atomic" + "github.com/ipfs-cluster/ipfs-cluster/api" shell "github.com/ipfs/go-ipfs-api" files "github.com/ipfs/go-libipfs/files" - "github.com/ipfs-cluster/ipfs-cluster/api" peer "github.com/libp2p/go-libp2p/core/peer" ) @@ -553,3 +553,12 @@ func (lc *loadBalancingClient) IPFS(ctx context.Context) *shell.Shell { return s } + +func (lc *loadBalancingClient) Health(ctx context.Context) (error) { + call := func(c Client) error { + err := c.Health(ctx) + return err + } + err := lc.retry(0, call) + return err +} \ No newline at end of file