wait for data
This commit is contained in:
@@ -66,16 +66,20 @@ func (logBuffer *LogBuffer) LoopProcessLogData(readerName string, startPosition
|
|||||||
isDone = true
|
isDone = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if waitForDataFn() {
|
lastTsNs := logBuffer.LastTsNs
|
||||||
continue
|
for lastTsNs == logBuffer.LastTsNs {
|
||||||
} else {
|
if waitForDataFn() {
|
||||||
isDone = true
|
continue
|
||||||
return
|
} else {
|
||||||
|
isDone = true
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if logBuffer.IsStopping() {
|
if logBuffer.IsStopping() {
|
||||||
isDone = true
|
isDone = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
buf := bytesBuf.Bytes()
|
buf := bytesBuf.Bytes()
|
||||||
|
|||||||
Reference in New Issue
Block a user