Skip to content

Commit 8ccce3c

Browse files
authored
Use / for listing (#77)
1 parent 0549f0a commit 8ccce3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/s3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ impl S3 {
297297
.client
298298
.list_objects_v2()
299299
.bucket(&S3_CONFIG.s3_bucket_name)
300-
.delimiter("/.schema")
300+
.delimiter('/')
301301
.send()
302302
.await?;
303303

@@ -307,7 +307,7 @@ impl S3 {
307307
let logstreams: Vec<_> = common_prefixes
308308
.iter()
309309
.filter_map(CommonPrefix::prefix)
310-
.filter_map(|name| name.strip_suffix("/.schema"))
310+
.filter_map(|name| name.strip_suffix('/'))
311311
.map(String::from)
312312
.map(|name| LogStream { name })
313313
.collect();

0 commit comments

Comments
 (0)