Skip to content

Commit

Permalink
Use DataCacheResult
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Beal <[email protected]>
  • Loading branch information
muddyfish committed Dec 20, 2024
1 parent 2756a2d commit 86c473a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mountpoint-s3/src/data_cache/express_data_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ where
block_offset: u64,
bytes: ChecksummedBytes,
object_size: usize,
) -> Result<(), DataCacheError> {
) -> DataCacheResult<()> {
if object_size > self.config.max_object_size {
metrics::counter!("express_data_cache.over_max_object_size", "type" => "write").increment(1);
return Ok(());
Expand Down Expand Up @@ -379,7 +379,7 @@ impl BlockMetadata {
headers: &HashMap<String, String>,
header: &str,
is_valid: F,
) -> Result<(), DataCacheError> {
) -> DataCacheResult<()> {
let value = headers
.get(header)
.ok_or(DataCacheError::InvalidBlockHeader(header.to_string()))?;
Expand Down

0 comments on commit 86c473a

Please sign in to comment.