This commit is contained in:
Asim Aslam
2019-12-17 18:24:00 +00:00
parent c61e12d5ee
commit 5a52593e66
2 changed files with 12 additions and 13 deletions

View File

@@ -26,11 +26,11 @@ type Entry struct {
// Stream is used to stream the buffer
type Stream struct {
// Id of the stream
Id string
Id string
// Buffered entries
Entries chan *Entry
// Stop channel
Stop chan bool
Stop chan bool
}
// Put adds a new value to ring buffer
@@ -142,4 +142,3 @@ func New(i int) *Buffer {
streams: make(map[string]*Stream),
}
}