sharding: fix return type of NewClient in client.go to return interface

Former-commit-id: c00c1905d427948185c354651ba223d445ffd801 [formerly 89f4058a8774ac7a996f7f28e1c0f973dd92ef84]
Former-commit-id: 1e54ceb3fd9e47864779b4ea132382f0a15aa3eb
This commit is contained in:
Raul Jordan 2018-05-02 10:39:08 -05:00
parent 701a33caec
commit cad5710590

View File

@ -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)