Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
jdknives committed Oct 18, 2019
1 parent e88a763 commit f1341e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/skywire-cli/commands/node/gen-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
output string
replace bool
configLocType = pathutil.WorkingDirLoc
testenv bool
testenv bool
)

func init() {
Expand Down Expand Up @@ -114,14 +114,12 @@ func defaultConfig() *visor.Config {
conf.Transport.LogStore.Type = "file"
conf.Transport.LogStore.Location = "./skywire/transport_logs"


if testenv {
if testenv {
conf.Routing.RouteFinder = skyenv.TestRouteFinderAddr
} else {
conf.Routing.RouteFinder = skyenv.DefaultRouteFinderAddr
}


var sPK cipher.PubKey
if err := sPK.UnmarshalText([]byte(skyenv.DefaultSetupPK)); err != nil {
log.WithError(err).Warnf("Failed to unmarshal default setup node public key %s", skyenv.DefaultSetupPK)
Expand Down
1 change: 1 addition & 0 deletions internal/skyenv/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const (
DefaultSetupPK = "026c5a07de617c5c488195b76e8671bf9e7ee654d0633933e202af9e111ffa358d"
)

// Constants for testing deployment.
const (
TestTpDiscAddr = "http://transport.discovery.skywire.cc"
TestDmsgDiscAddr = "http://dmsg.discovery.skywire.cc"
Expand Down

0 comments on commit f1341e9

Please sign in to comment.