diff options
Diffstat (limited to 'crates/store/src/write/key.rs')
-rw-r--r-- | crates/store/src/write/key.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/store/src/write/key.rs b/crates/store/src/write/key.rs index 22ff00e0..fff9a816 100644 --- a/crates/store/src/write/key.rs +++ b/crates/store/src/write/key.rs @@ -102,13 +102,13 @@ impl DeserializeBigEndian for &[u8] { fn deserialize_be_u32(&self, index: usize) -> trc::Result<u32> { self.get(index..index + U32_LEN) .ok_or_else(|| { - trc::Cause::DataCorruption + trc::StoreCause::DataCorruption .caused_by(trc::location!()) .ctx(trc::Key::Value, *self) }) .and_then(|bytes| { bytes.try_into().map_err(|_| { - trc::Cause::DataCorruption + trc::StoreCause::DataCorruption .caused_by(trc::location!()) .ctx(trc::Key::Value, *self) }) @@ -119,13 +119,13 @@ impl DeserializeBigEndian for &[u8] { fn deserialize_be_u64(&self, index: usize) -> trc::Result<u64> { self.get(index..index + U64_LEN) .ok_or_else(|| { - trc::Cause::DataCorruption + trc::StoreCause::DataCorruption .caused_by(trc::location!()) .ctx(trc::Key::Value, *self) }) .and_then(|bytes| { bytes.try_into().map_err(|_| { - trc::Cause::DataCorruption + trc::StoreCause::DataCorruption .caused_by(trc::location!()) .ctx(trc::Key::Value, *self) }) @@ -644,7 +644,7 @@ impl Deserialize for ReportEvent { .and_then(|domain| std::str::from_utf8(domain).ok()) .map(|s| s.to_string()) .ok_or_else(|| { - trc::Cause::DataCorruption + trc::StoreCause::DataCorruption .caused_by(trc::location!()) .ctx(trc::Key::Key, key) })?, |