diff options
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/manager.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs index 48aed75d..8abff1b1 100644 --- a/src/block/manager.rs +++ b/src/block/manager.rs @@ -1008,7 +1008,7 @@ impl ErrorCounter { } } - fn decode(data: &db::Value) -> Self { + fn decode(data: &[u8]) -> Self { Self { errors: u64::from_be_bytes(data[0..8].try_into().unwrap()), last_try: u64::from_be_bytes(data[8..16].try_into().unwrap()), |