From 73bebfd2da6605c01ee90f0465eaedeffa6217cd Mon Sep 17 00:00:00 2001 From: Anastasia Lubennikova Date: Thu, 27 Jul 2023 16:09:46 +0300 Subject: [PATCH] Fix obsolete comment to list_prefixes() --- libs/remote_storage/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/remote_storage/src/lib.rs b/libs/remote_storage/src/lib.rs index 92ef793a34..6e55f3c8ec 100644 --- a/libs/remote_storage/src/lib.rs +++ b/libs/remote_storage/src/lib.rs @@ -92,9 +92,8 @@ impl RemotePath { #[async_trait::async_trait] pub trait RemoteStorage: Send + Sync + 'static { /// Lists all top level subdirectories for a given prefix - /// Note: here we assume that if the prefix is passed it was obtained via remote_object_id - /// which already takes into account any kind of global prefix (prefix_in_bucket for S3 or storage_root for LocalFS) - /// so this method doesnt need to. + /// `prefix` is relative to the global prefix. + /// Internally this method enriches the path with global prefix (prefix_in_bucket for S3 or storage_root for LocalFS) async fn list_prefixes( &self, prefix: Option<&RemotePath>,