Skip to content

Commit

Permalink
chore: Snapshot2Context load_data immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Jan 21, 2025
1 parent 370ffc6 commit ab96c21
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 @@ -100,7 +100,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 ab96c21

Please sign in to comment.