multi: fix linter errors

This commit is contained in:
Olaoluwa Osuntokun 2017-09-03 17:04:53 -07:00
parent 53500127e3
commit fe0a7b6a09
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
3 changed files with 3 additions and 3 deletions

View File

@ -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",
},

View File

@ -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[:])

View File

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