Skip to content

Commit

Permalink
Update internal/component/loki/source/file/tailer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sam DeHaan <sam.dehaan@grafana.com>
  • Loading branch information
wildum and dehaansa authored Jan 17, 2025
1 parent 20fa27e commit ab59411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/component/loki/source/file/tailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ab59411

Please sign in to comment.