Skip to content

Commit

Permalink
chore: Snapshot2Context load_data immutable (#455) (#458)
Browse files Browse the repository at this point in the history
Co-authored-by: Quake Wang <quake.wang@gmail.com>
  • Loading branch information
mohanson and quake authored Jan 27, 2025
1 parent d8cb880 commit 00ac96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snapshot2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl<I: Clone + PartialEq, D: DataSource<I>> Snapshot2Context<I, D> {
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)
Expand Down

0 comments on commit 00ac96c

Please sign in to comment.