Skip to content

Commit

Permalink
server: lint++
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Jan 24, 2021
1 parent e75355e commit 82e6016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/crawl/node_crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
const (
defaultP2PPort = "26656"
locationCacheSize = 1000
ipClientHTTPS = false
ipClientTimeoutS = 5
)

// Crawler implements the Tendermint p2p network crawler.
Expand Down Expand Up @@ -46,7 +48,7 @@ func NewCrawler(logger zerolog.Logger, cfg config.Config, db *gorm.DB) (*Crawler
seeds: strings.Split(cfg.String(config.NodeSeeds), ","),
crawlInterval: cfg.Duration(config.NodeCrawlInterval),
recheckInterval: cfg.Duration(config.NodeRecheckInterval),
ipClient: ipstack.NewClient(cfg.String(config.IPStackKey), false, 5),
ipClient: ipstack.NewClient(cfg.String(config.IPStackKey), ipClientHTTPS, ipClientTimeoutS),
locCache: locCache,
pool: NewNodePool(uint(cfg.Int(config.NodeReseedSize))),
doneCh: make(chan struct{}),
Expand Down

0 comments on commit 82e6016

Please sign in to comment.