mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 08:44:28 +00:00
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:
parent
701a33caec
commit
cad5710590
@ -55,7 +55,7 @@ type Client interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewClient forms a new struct instance
|
// NewClient forms a new struct instance
|
||||||
func NewClient(ctx *cli.Context) *shardingClient {
|
func NewClient(ctx *cli.Context) Client {
|
||||||
path := node.DefaultDataDir()
|
path := node.DefaultDataDir()
|
||||||
if ctx.GlobalIsSet(utils.DataDirFlag.Name) {
|
if ctx.GlobalIsSet(utils.DataDirFlag.Name) {
|
||||||
path = ctx.GlobalString(utils.DataDirFlag.Name)
|
path = ctx.GlobalString(utils.DataDirFlag.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user