Skip to content

Commit

Permalink
fix: Ensure list_objects() lists more than 1 object
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Apr 15, 2024
1 parent a2218aa commit 49551e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block-streamer/src/s3_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl S3ClientImpl {
pub async fn list_objects(
&self,
bucket: &str,
prefix: &str,
start_after: &str,
continuation_token: Option<String>,
) -> Result<
aws_sdk_s3::operation::list_objects_v2::ListObjectsV2Output,
Expand All @@ -51,7 +51,7 @@ impl S3ClientImpl {
.list_objects_v2()
.delimiter("/")
.bucket(bucket)
.prefix(prefix);
.start_after(start_after);

if let Some(token) = continuation_token {
builder = builder.continuation_token(token);
Expand Down

0 comments on commit 49551e6

Please sign in to comment.