p2p: add a per-message type send and receive metric (#9622)

* p2p: ressurrect the p2p envelope and use to calculate message metric

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
This commit is contained in:
William Banfield
2022-10-27 15:46:15 -04:00
committed by GitHub
co-authored by Callum Waters
parent d95e423756
commit 09b8708314
47 changed files with 1354 additions and 988 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func (r *Rand) init() {
}
func (r *Rand) reset(seed int64) {
r.rand = mrand.New(mrand.NewSource(seed)) //nolint:gosec
r.rand = mrand.New(mrand.NewSource(seed))
}
//----------------------------------------