Skip to content

Commit

Permalink
fix: remove hard-coded file limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanb committed Jan 31, 2024
1 parent f03b736 commit cfb9987
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/handler/collector/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ func retrieve(s S3Collector, ctx context.Context, docChannel chan<- *processor.D
continue
}

if len(blob) > 6291456 {
logger.Infof("Skipping %s due to its size %d", item, len(blob))
continue
}
// TODO make this configurable
// if len(blob) > 6291456 {
// logger.Infof("Skipping %s due to its size %d", item, len(blob))
// continue
// }

enc, err := downloader.GetEncoding(ctx, s.config.S3Bucket, item)
if err != nil {
Expand Down

0 comments on commit cfb9987

Please sign in to comment.