Skip to content

Commit 11b0ca5

Browse files
rjl493456442bulgakovk
authored andcommitted
les: don't drop sentTo for normal cases (ethereum#22048)
1 parent 112d1ac commit 11b0ca5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

les/retrieve.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,18 +337,13 @@ func (r *sentReq) tryRequest() {
337337
}
338338

339339
defer func() {
340-
// send feedback to server pool and remove peer if hard timeout happened
341340
pp, ok := p.(*serverPeer)
342341
if hrto && ok {
343342
pp.Log().Debug("Request timed out hard")
344343
if r.rm.peers != nil {
345344
r.rm.peers.unregister(pp.id)
346345
}
347346
}
348-
349-
r.lock.Lock()
350-
delete(r.sentTo, p)
351-
r.lock.Unlock()
352347
}()
353348

354349
select {

0 commit comments

Comments
 (0)