openobserve(log): fix sendDebounceFunc not reset
This commit is contained in:
parent
24c5907e54
commit
6edf2c534d
|
@ -46,6 +46,7 @@ func (sl *OpenObserveHandler) Handle(ctx context.Context, record slog.Record) er
|
|||
sl.sendDebounceFunc = time.AfterFunc(sl.opts.BufferTimeout, func() {
|
||||
sl.mu.Lock()
|
||||
defer sl.mu.Unlock()
|
||||
sl.sendDebounceFunc = nil
|
||||
if sl.buffer.Len() < 1 {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue