mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
add logging when result received
This commit is contained in:
parent
c1ff2d8ba9
commit
83cc2cda25
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,8 @@ func (r *resultStore) SetThrottleThreshold(threshold uint64) uint64 {
|
||||||
r.lock.Lock()
|
r.lock.Lock()
|
||||||
defer r.lock.Unlock()
|
defer r.lock.Unlock()
|
||||||
|
|
||||||
|
fmt.Printf("set throttle threshold: %d\n", threshold)
|
||||||
|
|
||||||
limit := uint64(len(r.items))
|
limit := uint64(len(r.items))
|
||||||
if threshold >= limit {
|
if threshold >= limit {
|
||||||
threshold = limit
|
threshold = limit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue