mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
swarm/network: Fix comments
This commit is contained in:
parent
646d46614c
commit
b2f0655c57
1 changed files with 2 additions and 2 deletions
|
|
@ -415,7 +415,7 @@ func (self *StreamerPeer) setIncomingStreamer(s string, i IncomingStreamer, prio
|
|||
priority: priority,
|
||||
next: next,
|
||||
}
|
||||
next <- struct{}{} // this is to allow wantedHashesMsg before first batch arrives
|
||||
next <- struct{}{} // this is to allow wantedKeysMsg before first batch arrives
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -534,7 +534,7 @@ func (self *StreamerPeer) handleOfferedHashesMsg(req *OfferedHashesMsg) error {
|
|||
}
|
||||
s.next <- struct{}{}
|
||||
}()
|
||||
// only send wantedHashesMsg if all missing chunks of the previous batch arrived
|
||||
// only send wantedKeysMsg if all missing chunks of the previous batch arrived
|
||||
// except
|
||||
if s.live {
|
||||
s.sessionAt = req.From
|
||||
|
|
|
|||
Loading…
Reference in a new issue