message broker: read also from sealed memory buffer

This commit is contained in:
Chris Lu committed 2020-04-20 17:26:38 -07:00
1 parent bd43c62fbd
commit 4bf959edf0
3 files changed
+22 -2

No files matched your search

+5
View File
@@ -122,6 +122,11 @@ func (m *LogBuffer) loopInterval() {
m.Unlock()
m.flushChan <- toFlush
time.Sleep(m.flushInterval)
if m.notifyFn != nil {
// check whether blocked clients are already disconnected
println("notifying log buffer readers")
m.notifyFn()
}
}
}