diff --git a/rudder/src/meta/object.rs b/rudder/src/meta/object.rs index 3812bdc..bc70a4c 100644 --- a/rudder/src/meta/object.rs +++ b/rudder/src/meta/object.rs @@ -16,28 +16,28 @@ impl ObjectMetaStore { Self { object_store, path } } - async fn put(&self, key: &Vec, value: Vec) -> Result<()> { + async fn put(&self, key: &[u8], value: Vec) -> Result<()> { self.object_store .put(&self.key(key), value) .await .map_err(Error::StorageError) } - async fn get(&self, key: &Vec) -> Result>> { + async fn get(&self, key: &[u8]) -> Result>> { self.object_store .get(&self.key(key)) .await .map_err(Error::StorageError) } - async fn remove(&self, key: &Vec) -> Result<()> { + async fn remove(&self, key: &[u8]) -> Result<()> { self.object_store .remove(&self.key(key)) .await .map_err(Error::StorageError) } - fn key(&self, key: &Vec) -> String { + fn key(&self, key: &[u8]) -> String { format!("{}/{}", self.path, base64::encode(key)) } }