Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

File input should not complain about files already being closed #174

Merged
merged 1 commit into from
Jun 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions operator/builtin/input/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,6 @@ func (f *InputOperator) poll(ctx context.Context) {
// Wait until all the reader goroutines are finished
wg.Wait()

// Close all files
for _, reader := range readers {
if err := reader.Close(); err != nil {
f.Errorf("problem closing reader", "file", reader.file.Name())
}
}

f.saveCurrent(readers)
f.syncLastPollFiles(ctx)
}
Expand Down