fix: reset bandwidth counter

This commit is contained in:
Richard Ramos 2024-09-25 12:14:57 -04:00
parent b021257652
commit 319e843f0b
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
1 changed files with 1 additions and 0 deletions

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)
}
}