Browse Source

Update weed/util/log_buffer/log_buffer.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7185/head
Chris Lu 1 month ago
committed by GitHub
parent
commit
5adea57224
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/util/log_buffer/log_buffer.go

2
weed/util/log_buffer/log_buffer.go

@ -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()

Loading…
Cancel
Save