mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 00:58:11 -05:00
perf(net): put timeout check behind interval (#537)
This commit is contained in:
@@ -452,8 +452,10 @@ impl Future for ActiveSession {
|
||||
}
|
||||
|
||||
if !progress {
|
||||
// check for timed out requests
|
||||
this.evict_timed_out_requests(Instant::now());
|
||||
if this.timeout_interval.poll_tick(cx).is_ready() {
|
||||
// check for timed out requests
|
||||
this.evict_timed_out_requests(Instant::now());
|
||||
}
|
||||
|
||||
return Poll::Pending
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user