Skip to content

Commit d11ce27

Browse files
authored
Use correct reader in filesystem source (#756)
1 parent 37c4eea commit d11ce27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sources/filesystem/filesystem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err
140140
}
141141
reReader.Stop()
142142

143-
for chunkData := range common.ChunkReader(inputFile) {
143+
for chunkData := range common.ChunkReader(reReader) {
144144
chunksChan <- &sources.Chunk{
145145
SourceType: s.Type(),
146146
SourceName: s.name,

0 commit comments

Comments
 (0)