mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network/stream: remove 'stream' cap check from RequestFromPeers
This commit is contained in:
parent
efb239f29a
commit
bb518e0255
1 changed files with 0 additions and 7 deletions
|
|
@ -259,13 +259,6 @@ func (d *Delivery) RequestFromPeers(ctx context.Context, req *network.Request) (
|
||||||
if sp == nil {
|
if sp == nil {
|
||||||
return true
|
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
|
spID = &id
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue