diff options
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-cache/src/eviction/lru.rs | 2 | ||||
-rw-r--r-- | pingora-cache/src/eviction/simple_lru.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -761f676b044dcf0d34205f96921e3385ffac7810
\ No newline at end of file +e278ef01df84b21d283864c494b51614a12171de
\ No newline at end of file diff --git a/pingora-cache/src/eviction/lru.rs b/pingora-cache/src/eviction/lru.rs index fa09fab..2ca9364 100644 --- a/pingora-cache/src/eviction/lru.rs +++ b/pingora-cache/src/eviction/lru.rs @@ -217,7 +217,7 @@ impl<const N: usize> EvictionManager for Manager<N> { let mut buffer = Vec::with_capacity(8192); file.read_to_end(&mut buffer) .or_err_with(InternalError, || { - err_str_path("fail to write to", &file_path) + err_str_path("fail to read from", &file_path) })?; Ok::<Vec<u8>, BError>(buffer) }) diff --git a/pingora-cache/src/eviction/simple_lru.rs b/pingora-cache/src/eviction/simple_lru.rs index caa9293..6bb9a0d 100644 --- a/pingora-cache/src/eviction/simple_lru.rs +++ b/pingora-cache/src/eviction/simple_lru.rs @@ -248,7 +248,7 @@ impl EvictionManager for Manager { })?; let mut buffer = Vec::with_capacity(8192); file.read_to_end(&mut buffer) - .or_err(InternalError, "fail to write to {file_path}")?; + .or_err(InternalError, "fail to read from {file_path}")?; Ok::<Vec<u8>, BError>(buffer) }) .await |