Skip to content

Commit

Permalink
AWS S3: fix invalid prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanmail committed Jan 13, 2025
1 parent f610b64 commit c41dce2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/tailer/logstream/awss3.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ func (fs *s3Stream) stream(ctx context.Context, wg *sync.WaitGroup, waker waker.
for {
input := &s3.ListObjectsV2Input{
Bucket: &fs.bucket,
Prefix: &fs.prefix,
}

if fs.prefix != "" {
input.Prefix = &fs.prefix
}

if fs.lastKey != "" {
Expand Down

0 comments on commit c41dce2

Please sign in to comment.