fix stackoverflow (#542)

closes #541 

two functions was calling itself instead of routing to primary
This commit is contained in:
Rob Meng
2023-10-05 20:05:04 -04:00
committed by GitHub
parent 1db66c6980
commit 0eb7c9ea0c

View File

@@ -125,11 +125,11 @@ impl ObjectStore for MirroringObjectStore {
}
async fn list(&self, prefix: Option<&Path>) -> Result<BoxStream<'_, Result<ObjectMeta>>> {
self.list(prefix).await
self.primary.list(prefix).await
}
async fn list_with_delimiter(&self, prefix: Option<&Path>) -> Result<ListResult> {
self.list_with_delimiter(prefix).await
self.primary.list_with_delimiter(prefix).await
}
async fn copy(&self, from: &Path, to: &Path) -> Result<()> {