Skip to content

Commit

Permalink
Merge pull request #1635 from mysteriumnetwork/fix/constant-policy-fetch
Browse files Browse the repository at this point in the history
Parse flags before applying it to policy fetcher
  • Loading branch information
zolia authored Feb 5, 2020
2 parents 13c7a15 + 92f4a14 commit 0d2c4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/commands/service/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func NewCommand(licenseCommandName string) *cli.Command {

quit := make(chan error)
config.ParseFlagsNode(ctx)
config.ParseFlagsServiceShared(ctx)
nodeOptions := node.GetOptions()
if err := di.Bootstrap(*nodeOptions); err != nil {
return err
Expand All @@ -61,7 +62,6 @@ func NewCommand(licenseCommandName string) *cli.Command {

cmd.RegisterSignalCallback(func() { quit <- nil })

config.ParseFlagsServiceShared(ctx)
cmdService := &serviceCommand{
tequilapi: client.NewClient(nodeOptions.TequilapiAddress, nodeOptions.TequilapiPort),
errorChannel: quit,
Expand Down

0 comments on commit 0d2c4c4

Please sign in to comment.