aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-cache/src/eviction/lru.rs
diff options
context:
space:
mode:
authorGustav Davidsson <[email protected]>2024-09-16 13:50:05 -0700
committerKevin Guthrie <[email protected]>2024-10-07 14:23:08 -0400
commit5759d38624a43ed591bd53e9c0c56a38eb003eaa (patch)
tree6d27faa34865f4dac15dfeab701f7beaf57f3234 /pingora-cache/src/eviction/lru.rs
parent8ae4ebbf02cb9cf429528e120425a298d7862e57 (diff)
downloadpingora-5759d38624a43ed591bd53e9c0c56a38eb003eaa.tar.gz
pingora-5759d38624a43ed591bd53e9c0c56a38eb003eaa.zip
A couple of error message nits
Diffstat (limited to 'pingora-cache/src/eviction/lru.rs')
-rw-r--r--pingora-cache/src/eviction/lru.rs2
1 files changed, 1 insertions, 1 deletions
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)
})