Skip to content

Commit

Permalink
Merge pull request #11 from Chia-Network/no-initial-crawler-data
Browse files Browse the repository at this point in the history
Don't load initial crawler data
  • Loading branch information
cmmarslender authored Feb 28, 2022
2 parents f2e4333 + e4073f3 commit ef0e340
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/metrics/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ func (s *CrawlerServiceMetrics) initMaxmindDB() error {
return nil
}

// InitialData is called on startup of the metrics server, to allow seeding metrics with
// current/initial data
func (s *CrawlerServiceMetrics) InitialData() {
utils.LogErr(s.metrics.client.CrawlerService.GetPeerCounts())
}
// InitialData is called on startup of the metrics server, to allow seeding metrics with current/initial data
func (s *CrawlerServiceMetrics) InitialData() {}

// ReceiveResponse handles crawler responses that are returned over the websocket
func (s *CrawlerServiceMetrics) ReceiveResponse(resp *types.WebsocketResponse) {
Expand Down

0 comments on commit ef0e340

Please sign in to comment.