From ab594113cf2c196ae8e72c4dbc5d2c772895b89a Mon Sep 17 00:00:00 2001 From: William Dumont Date: Fri, 17 Jan 2025 09:53:35 +0100 Subject: [PATCH] Update internal/component/loki/source/file/tailer.go Co-authored-by: Sam DeHaan --- internal/component/loki/source/file/tailer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/component/loki/source/file/tailer.go b/internal/component/loki/source/file/tailer.go index 8f1cde1aa..2edf6f62b 100644 --- a/internal/component/loki/source/file/tailer.go +++ b/internal/component/loki/source/file/tailer.go @@ -287,7 +287,7 @@ func (t *tailer) readLines(handler loki.EntryHandler) { } func (t *tailer) markPositionAndSize() error { - // Lock this update because it can be called in two different threads + // Lock this update because it can be called in two different goroutines t.posAndSizeMtx.Lock() defer t.posAndSizeMtx.Unlock()