Skip to content

Commit

Permalink
fixing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Feb 5, 2025
1 parent 1bfa1b0 commit 6725500
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wakuv2/nwaku.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,16 @@ func (w *Waku) StopDiscV5() error {
}

func (w *Waku) GetStats() types.StatsSummary {
return types.StatsSummary{
UploadRate: uint64(1),
DownloadRate: uint64(1),
}
/* TODO-nwaku
stats := w.bandwidthCounter.GetBandwidthTotals()
return types.StatsSummary{
UploadRate: uint64(stats.RateOut),
DownloadRate: uint64(stats.RateIn),
}
} */
}

/* TODO-nwaku
Expand Down

0 comments on commit 6725500

Please sign in to comment.