mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
Replace OutgoingStreamer with Server in comments
This commit is contained in:
parent
2aa9791fc7
commit
9bafb029ad
2 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ func NewDelivery(overlay network.Overlay, db *storage.DBAPI) *Delivery {
|
|||
return d
|
||||
}
|
||||
|
||||
// SwarmChunkServer implements OutgoingStreamer
|
||||
// SwarmChunkServer implements Server
|
||||
type SwarmChunkServer struct {
|
||||
deliveryC chan []byte
|
||||
batchC chan []byte
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ const (
|
|||
BatchSize = 128
|
||||
)
|
||||
|
||||
// SwarmSyncerServer implements an OutgoingStreamer for history syncing on bins
|
||||
// SwarmSyncerServer implements an Server for history syncing on bins
|
||||
// offered streams:
|
||||
// * live request delivery with or without checkback
|
||||
// * (live/non-live historical) chunk syncing per proximity bin
|
||||
|
|
@ -67,7 +67,7 @@ func RegisterSwarmSyncerServer(streamer *Registry, db *storage.DBAPI) {
|
|||
// TODO: make this work for HISTORY too
|
||||
return NewSwarmSyncerServer(false, po, db)
|
||||
})
|
||||
// streamer.RegisterOutgoingStreamer(stream, func(p *Peer) (OutgoingStreamer, error) {
|
||||
// streamer.RegisterServerFunc(stream, func(p *Peer) (Server, error) {
|
||||
// return NewOutgoingProvableSwarmSyncer(po, db)
|
||||
// })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue