Skip to content

Commit

Permalink
address another todo item
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 11, 2023
1 parent 6d17c70 commit ba9f792
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ballista/core/src/cache_layer/object_store/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::error::BallistaError;
use async_trait::async_trait;
use ballista_cache::loading_cache::LoadingCache;
use bytes::Bytes;
use futures::stream::BoxStream;
use futures::stream::{self, BoxStream, StreamExt};
use log::info;
use object_store::path::Path;
use object_store::{
Expand Down Expand Up @@ -231,11 +231,14 @@ where
&self,
_prefix: Option<&Path>,
) -> BoxStream<'_, object_store::Result<ObjectMeta>> {
// TODO we can no longer return an Err here
// Err(Error::NotSupported {
// source: Box::new(BallistaError::General("List is not supported".to_string())),
// })
todo!()
stream::once(async {
Err(Error::NotSupported {
source: Box::new(BallistaError::General(
"List is not supported".to_string(),
)),
})
})
.boxed()
}

async fn list_with_delimiter(
Expand Down

0 comments on commit ba9f792

Please sign in to comment.