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

Commit

Permalink
Readers are closed in ReadToEnd, so don't double close (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaglowski authored Jun 9, 2021
1 parent 9050cb7 commit d988d23
Showing 1 changed file with 0 additions and 7 deletions.
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

0 comments on commit d988d23

Please sign in to comment.