Skip to content

Commit

Permalink
Move ChecksummedBytes to the object module
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Passaro <[email protected]>
  • Loading branch information
passaro committed May 3, 2024
1 parent fe38142 commit fde9b9f
Show file tree
Hide file tree
Showing 8 changed files with 591 additions and 589 deletions.
578 changes: 1 addition & 577 deletions mountpoint-s3/src/checksums.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mountpoint-s3/src/data_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ mod in_memory_data_cache;

use thiserror::Error;

pub use crate::checksums::ChecksummedBytes;
pub use crate::data_cache::cache_directory::ManagedCacheDir;
pub use crate::data_cache::disk_data_cache::{CacheLimit, DiskDataCache, DiskDataCacheConfig};
pub use crate::data_cache::in_memory_data_cache::InMemoryDataCache;
pub use crate::object::ChecksummedBytes;

use crate::object::ObjectId;

Expand Down
3 changes: 1 addition & 2 deletions mountpoint-s3/src/data_cache/disk_data_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ use sha2::{Digest, Sha256};
use thiserror::Error;
use tracing::{trace, warn};

use crate::checksums::IntegrityError;
use crate::data_cache::DataCacheError;
use crate::object::ObjectId;
use crate::object::{IntegrityError, ObjectId};
use crate::sync::Mutex;

use super::{BlockIndex, ChecksummedBytes, DataCache, DataCacheResult};
Expand Down
Loading

0 comments on commit fde9b9f

Please sign in to comment.