Skip to content

Commit

Permalink
support capacities in stream sync
Browse files Browse the repository at this point in the history
  • Loading branch information
GheisMohammadi committed Oct 29, 2024
1 parent ab1f686 commit a316f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/service/stagedstreamsync/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ type syncProtocol interface {
RemoveStream(stID sttypes.StreamID) // If a stream delivers invalid data, remove the stream
StreamFailed(stID sttypes.StreamID, reason string)
SubscribeAddStreamEvent(ch chan<- streammanager.EvtStreamAdded) event.Subscription
Streams() []sttypes.Stream
NumStreams() int
AvailableCapacity() int
}

type blockChain interface {
engine.ChainReader
Engine() engine.Engine
Expand Down

0 comments on commit a316f67

Please sign in to comment.