From 00ac96ca5cd142193ce1292d26b5a4b06c3d1b4d Mon Sep 17 00:00:00 2001 From: Mohanson Date: Mon, 27 Jan 2025 11:28:01 +0800 Subject: [PATCH] chore: Snapshot2Context load_data immutable (#455) (#458) Co-authored-by: Quake Wang --- src/snapshot2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapshot2.rs b/src/snapshot2.rs index f06d25e2..d5dd77d6 100644 --- a/src/snapshot2.rs +++ b/src/snapshot2.rs @@ -104,7 +104,7 @@ impl> Snapshot2Context { Ok(()) } - pub fn load_data(&mut self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> { + pub fn load_data(&self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> { self.data_source .load_data(id, offset, length) .ok_or(Error::SnapshotDataLoadError)