mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
eth/fetcher: count unique hashes in blob queueing metric (#35393)
blobFetcherQueueingHashes used len(announces), which is the number of peers with pending announces, not the number of queued hashes. Count unique hashes across peers instead. --------- Co-authored-by: Bosul Mun <bsbs8645@snu.ac.kr>
This commit is contained in:
parent
5d88c6b324
commit
a9ca080d7f
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ func (f *BlobFetcher) loop() {
|
||||||
blobFetcherWaitingPeers.Update(int64(len(f.waitslots)))
|
blobFetcherWaitingPeers.Update(int64(len(f.waitslots)))
|
||||||
blobFetcherWaitingHashes.Update(int64(len(f.waitlist)))
|
blobFetcherWaitingHashes.Update(int64(len(f.waitlist)))
|
||||||
blobFetcherQueueingPeers.Update(int64(len(f.announces) - len(f.requests)))
|
blobFetcherQueueingPeers.Update(int64(len(f.announces) - len(f.requests)))
|
||||||
blobFetcherQueueingHashes.Update(int64(len(f.announces)))
|
blobFetcherQueueingHashes.Update(int64(len(f.full) + len(f.partial) - len(f.fetches) - len(f.waitlist)))
|
||||||
blobFetcherFetchingPeers.Update(int64(len(f.requests)))
|
blobFetcherFetchingPeers.Update(int64(len(f.requests)))
|
||||||
blobFetcherFetchingHashes.Update(int64(len(f.fetches)))
|
blobFetcherFetchingHashes.Update(int64(len(f.fetches)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue