forked from cerc-io/plugeth
les: don't drop sentTo for normal cases (#22048)
This commit is contained in:
parent
3944976a9a
commit
8d62ee65b2
@ -337,7 +337,6 @@ func (r *sentReq) tryRequest() {
|
||||
}
|
||||
|
||||
defer func() {
|
||||
// send feedback to server pool and remove peer if hard timeout happened
|
||||
pp, ok := p.(*serverPeer)
|
||||
if hrto && ok {
|
||||
pp.Log().Debug("Request timed out hard")
|
||||
@ -345,10 +344,6 @@ func (r *sentReq) tryRequest() {
|
||||
r.rm.peers.unregister(pp.id)
|
||||
}
|
||||
}
|
||||
|
||||
r.lock.Lock()
|
||||
delete(r.sentTo, p)
|
||||
r.lock.Unlock()
|
||||
}()
|
||||
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user