From cad5710590906b654f995473b49175baaa3fb234 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Wed, 2 May 2018 10:39:08 -0500 Subject: [PATCH] sharding: fix return type of NewClient in client.go to return interface Former-commit-id: c00c1905d427948185c354651ba223d445ffd801 [formerly 89f4058a8774ac7a996f7f28e1c0f973dd92ef84] Former-commit-id: 1e54ceb3fd9e47864779b4ea132382f0a15aa3eb --- sharding/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharding/client/client.go b/sharding/client/client.go index e9c6824df..5523dd614 100644 --- a/sharding/client/client.go +++ b/sharding/client/client.go @@ -55,7 +55,7 @@ type Client interface { } // NewClient forms a new struct instance -func NewClient(ctx *cli.Context) *shardingClient { +func NewClient(ctx *cli.Context) Client { path := node.DefaultDataDir() if ctx.GlobalIsSet(utils.DataDirFlag.Name) { path = ctx.GlobalString(utils.DataDirFlag.Name)