Skip to content

Commit

Permalink
fix some todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 11, 2023
1 parent c9f821d commit 6d17c70
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
15 changes: 10 additions & 5 deletions ballista/core/src/cache_layer/object_store/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ where

async fn put_opts(
&self,
location: &Path,
bytes: Bytes,
opts: PutOptions,
_location: &Path,
_bytes: Bytes,
_opts: PutOptions,
) -> object_store::Result<PutResult> {
todo!()
Err(Error::NotSupported {
source: Box::new(BallistaError::General(
"Write path is not supported".to_string(),
)),
})
}

async fn put_multipart(
Expand Down Expand Up @@ -225,8 +229,9 @@ where

fn list(
&self,
prefix: Option<&Path>,
_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())),
// })
Expand Down
8 changes: 4 additions & 4 deletions ballista/core/src/cache_layer/object_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ impl ObjectStore for ObjectStoreWithKey {

async fn put_opts(
&self,
_location: &Path,
_bytes: Bytes,
_opts: PutOptions,
location: &Path,
bytes: Bytes,
opts: PutOptions,
) -> object_store::Result<PutResult> {
todo!()
self.inner.put_opts(location, bytes, opts).await
}

async fn put_multipart(
Expand Down

0 comments on commit 6d17c70

Please sign in to comment.