add logging when result received

This commit is contained in:
Jared Wasinger 2025-03-26 15:43:19 +01:00
parent c1ff2d8ba9
commit 83cc2cda25

View file

@ -59,6 +59,8 @@ func (r *resultStore) SetThrottleThreshold(threshold uint64) uint64 {
r.lock.Lock()
defer r.lock.Unlock()
fmt.Printf("set throttle threshold: %d\n", threshold)
limit := uint64(len(r.items))
if threshold >= limit {
threshold = limit