Skip to content

Commit 12dcebf

Browse files
committed
Use configured watcher config
1 parent 5359df6 commit 12dcebf

File tree

1 file changed

+2
-2
lines changed
  • internal/component/loki/source/file/internal/tail

1 file changed

+2
-2
lines changed

internal/component/loki/source/file/internal/tail/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ func (f *File) reopen(truncated bool) error {
201201
f.file.Close()
202202

203203
backoff := backoff.New(f.ctx, backoff.Config{
204-
MinBackoff: defaultWatcherConfig.MaxPollFrequency,
205-
MaxBackoff: defaultWatcherConfig.MaxPollFrequency,
204+
MinBackoff: f.cfg.WatcherConfig.MinPollFrequency,
205+
MaxBackoff: f.cfg.WatcherConfig.MaxPollFrequency,
206206
MaxRetries: 20,
207207
})
208208

0 commit comments

Comments
 (0)