Update libs/remote_storage/src/s3_bucket.rs

Co-authored-by: Alex Chi Z. <iskyzh@gmail.com>
This commit is contained in:
Alek Westover
2023-06-15 13:00:07 -04:00
committed by GitHub
parent 7465c644b9
commit 91a809332f

View File

@@ -366,7 +366,7 @@ impl RemoteStorage for S3Bucket {
.context("Failed to list files in S3 bucket")?;
for object in response.contents().unwrap_or_default() {
let object_path = object.key().unwrap();
let object_path = object.key().expect("response does not contain a key");
println!("{:?}", object_path);
let remote_path = self.s3_object_to_relative_path(object_path);
all_files.push(remote_path);