From fe0a7b6a092a8974bd996284ca9964dc60780f89 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 3 Sep 2017 17:04:53 -0700 Subject: [PATCH] multi: fix linter errors --- chainregistry.go | 2 +- discovery/bootstrapper.go | 2 +- server.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chainregistry.go b/chainregistry.go index 180ae798..68dc197a 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -343,7 +343,7 @@ var ( // TODO(roasbeef): extend and collapse these and chainparams.go into // struct like chaincfg.Params chainDNSSeeds = map[chainhash.Hash][]string{ - bitcoinGenesis: []string{ + bitcoinGenesis: { "nodes.lightning.directory", //"lseed.bitcoinstats.com", }, diff --git a/discovery/bootstrapper.go b/discovery/bootstrapper.go index b5ac0edd..fc970ddf 100644 --- a/discovery/bootstrapper.go +++ b/discovery/bootstrapper.go @@ -204,7 +204,7 @@ func (c *ChannelGraphBootstrapper) SampleNodeAddrs(numAddrs uint32, return nil, err } - tries += 1 + tries++ // We'll now rotate our hash accumulator one value forwards. c.hashAccumulator = sha256.Sum256(c.hashAccumulator[:]) diff --git a/server.go b/server.go index f61d7cb1..720bbfad 100644 --- a/server.go +++ b/server.go @@ -596,7 +596,7 @@ func (s *server) peerBootstrapper(numTargetPeers uint32, // Finally, we'll launch a new goroutine for each // prospective peer candidates. for _, addr := range peerAddrs { - epochAttempts += 1 + epochAttempts++ go func(a *lnwire.NetAddress) { // TODO(roasbeef): can do AS, subnet,