fix: reset bandwidth counter

This commit is contained in:
Richard Ramos 2024-09-25 11:47:01 -04:00
parent 6f6983e62e
commit 9fade165f2
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

View File

@ -373,6 +373,7 @@ func (w *WakuNode) Start(ctx context.Context) error {
return
case <-ticker.C:
totals := w.bandwidthCounter.GetBandwidthTotals()
w.bandwidthCounter.Reset()
w.metrics.RecordBandwidth(totals)
}
}