This commit is contained in:
Jared Wasinger 2025-04-22 16:24:10 +08:00
parent b8d64aa30a
commit 24bd5c95e5

View file

@ -175,10 +175,6 @@ func (r *resultStore) GetCompleted(limit int) []*fetchResult {
limit = completed limit = completed
} }
var totalSize int
for i := 0; i < limit; i++ {
totalSize += r.items[i].Size()
}
r.pendingCount -= limit r.pendingCount -= limit
pendingBodyGauge.Update(int64(r.pendingCount)) pendingBodyGauge.Update(int64(r.pendingCount))