fix a misleading annotation (#160)

This commit is contained in:
ZhangJian He authored and GitHub committed 2022-04-25 20:38:03 +08:00
1 parent a95c028cb8
commit 7787d3ca0d
2 files changed
+3 -8

No files matched your search

+2 -6
View File
@@ -129,10 +129,9 @@ func (c *csvLog) writeToLog(els []Elements) error {
// for performance we batch messages into an outqueue and write them in bulk when a timer expires
func (c *csvLog) Worker() {
log.Info("Running CSVLog worker")
run := true
var outqueue []Elements
for run == true {
for true {
c.RLock()
waitInterval := c.config.WriteIntervalSecs
c.RUnlock()
@@ -191,10 +190,7 @@ func (c *csvLog) Worker() {
}
break
}
if run != true {
log.Info("Closing CSV Bridge worker")
break
}
}
}