aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGustav Davidsson <[email protected]>2024-09-16 13:50:05 -0700
committerGustav Davidsson <[email protected]>2024-09-16 13:50:05 -0700
commit56419fb48939f2cd3ac811e307e1df5dc2bb2a44 (patch)
tree6d27faa34865f4dac15dfeab701f7beaf57f3234
parent8ae4ebbf02cb9cf429528e120425a298d7862e57 (diff)
downloadpingora-56419fb48939f2cd3ac811e307e1df5dc2bb2a44.tar.gz
pingora-56419fb48939f2cd3ac811e307e1df5dc2bb2a44.zip
A couple of error message nits
-rw-r--r--.bleep2
-rw-r--r--pingora-cache/src/eviction/lru.rs2
-rw-r--r--pingora-cache/src/eviction/simple_lru.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/.bleep b/.bleep
index c2d9bce..fc84a1c 100644
--- a/.bleep
+++ b/.bleep
@@ -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