swarm: fix flaky delivery tests (#18971)
(cherry picked from commit 592bf6a59c
)
This commit is contained in:
committed by
Rafael Matias
parent
2695aa9e0d
commit
3f54994db0
@ -259,13 +259,6 @@ func (d *Delivery) RequestFromPeers(ctx context.Context, req *network.Request) (
|
||||
if sp == nil {
|
||||
return true
|
||||
}
|
||||
// nodes that do not provide stream protocol
|
||||
// should not be requested, e.g. bootnodes
|
||||
if !p.HasCap("stream") {
|
||||
// TODO: if we have no errors, delete this if
|
||||
log.Error("Delivery.RequestFromPeers: peer doesn't have stream cap. we should have returned at sp == nil")
|
||||
return true
|
||||
}
|
||||
spID = &id
|
||||
return false
|
||||
})
|
||||
|
Reference in New Issue
Block a user