Replace OutgoingStreamer with Server in comments

This commit is contained in:
Balint Gabor 2018-01-31 14:44:43 +01:00
parent 2aa9791fc7
commit 9bafb029ad
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)
// })
}