Update weed/util/log_buffer/log_buffer.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Chris Lu
2025-09-03 21:54:51 -07:00
committed by GitHub
co-authored by gemini-code-assist[bot]
parent d192536376
commit 5adea57224
+1 -1
View File
@@ -64,7 +64,7 @@ func NewLogBuffer(name string, flushInterval time.Duration, flushFn LogFlushFunc
notifyFn: notifyFn,
flushChan: make(chan *dataToFlush, 256),
isStopping: new(atomic.Bool),
batchIndex: time.Now().UnixNano(), // Initialize with process start time for uniqueness
batchIndex: time.Now().UnixNano(), // Initialize with creation time for uniqueness across restarts
}
go lb.loopFlush()
go lb.loopInterval()