mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
closing pipe reader when data is finished?
This commit is contained in:
parent
be9a01cc03
commit
6253092a2f
1 changed files with 6 additions and 3 deletions
|
|
@ -16,9 +16,12 @@ func (b *Broadcaster) Consume() {
|
|||
return
|
||||
}
|
||||
io.Copy(ioutil.Discard, b.source)
|
||||
for _, cl := range b.Writers {
|
||||
c := cl.(io.WriteCloser)
|
||||
c.Close()
|
||||
// maybe acknolwede completfe? but it doesn't know its complete
|
||||
for i := range b.Writers {
|
||||
r := b.Readers[i].(*io.PipeReader)
|
||||
w := b.Writers[i].(*io.PipeWriter)
|
||||
r.Close()
|
||||
w.Close()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue