mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
swarm/network: Store stream in outgoingStreamer
This commit is contained in:
parent
791cac2403
commit
dc134e0219
1 changed files with 4 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ type outgoingStreamer struct {
|
||||||
OutgoingStreamer
|
OutgoingStreamer
|
||||||
priority uint8
|
priority uint8
|
||||||
currentBatch []byte
|
currentBatch []byte
|
||||||
|
stream string
|
||||||
}
|
}
|
||||||
|
|
||||||
// OutgoingStreamer interface for outgoing peer Streamer
|
// OutgoingStreamer interface for outgoing peer Streamer
|
||||||
|
|
@ -640,6 +641,9 @@ func (self *StreamerPeer) SendOfferedHashes(s *outgoingStreamer, f, t uint64) er
|
||||||
Hashes: hashes,
|
Hashes: hashes,
|
||||||
From: from,
|
From: from,
|
||||||
To: to,
|
To: to,
|
||||||
|
Stream: s.stream,
|
||||||
|
// TODO: use real key here
|
||||||
|
Key: []byte{},
|
||||||
}
|
}
|
||||||
return self.SendPriority(msg, s.priority)
|
return self.SendPriority(msg, s.priority)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue