Skip to content

Commit

Permalink
ObjectStorage: Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Dec 5, 2024
1 parent 4019f9f commit 384f84f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/storage/azure_blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ pub fn to_object_store_path(path: &RelativePath) -> StorePath {

// ObjStoreClient is generic client to enable interactions with different cloudprovider's
// object store such as S3 and Azure Blob
#[derive(Debug)]
pub struct BlobStore {
client: LimitStore<MicrosoftAzure>,
account: String,
Expand Down
1 change: 1 addition & 0 deletions src/storage/localfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl ObjectStorageProvider for FSConfig {
}
}

#[derive(Debug)]
pub struct LocalFS {
// absolute path of the data directory
root: PathBuf,
Expand Down
2 changes: 1 addition & 1 deletion src/storage/object_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub trait ObjectStorageProvider: StorageMetrics + std::fmt::Debug + Send + Sync
}

#[async_trait]
pub trait ObjectStorage: Send + Sync + 'static {
pub trait ObjectStorage: std::fmt::Debug + Send + Sync + 'static {
async fn get_object(&self, path: &RelativePath) -> Result<Bytes, ObjectStorageError>;
// TODO: make the filter function optional as we may want to get all objects
async fn get_objects(
Expand Down
1 change: 1 addition & 0 deletions src/storage/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ fn to_object_store_path(path: &RelativePath) -> StorePath {
StorePath::from(path.as_str())
}

#[derive(Debug)]
pub struct S3 {
client: LimitStore<AmazonS3>,
bucket: String,
Expand Down

0 comments on commit 384f84f

Please sign in to comment.