mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-01-06 15:33:10 +00:00
removes periodic log statement
This commit is contained in:
parent
4b46bb34ba
commit
7378148ed8
@ -40,15 +40,8 @@ method start*(d: DhtMetrics): Future[?!void] {.async.} =
|
||||
|
||||
proc onCheck(event: DhtNodeCheckEventData): Future[?!void] {.async.} =
|
||||
await d.handleCheckEvent(event)
|
||||
|
||||
d.sub = d.state.events.dhtNodeCheck.subscribe(onCheck)
|
||||
|
||||
proc logDhtMetrics(): Future[?!void] {.async: (raises: []), gcsafe.} =
|
||||
trace "Metrics", ok = d.ok.len, nok = d.nok.len
|
||||
return success()
|
||||
|
||||
await d.state.whileRunning(logDhtMetrics, 1.minutes)
|
||||
|
||||
return success()
|
||||
|
||||
method stop*(d: DhtMetrics): Future[?!void] {.async.} =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user