Skip to content

Commit ab96c21

Browse files
committed
chore: Snapshot2Context load_data immutable
1 parent 370ffc6 commit ab96c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<I: Clone + PartialEq, D: DataSource<I>> Snapshot2Context<I, D> {
100100
Ok(())
101101
}
102102

103-
pub fn load_data(&mut self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> {
103+
pub fn load_data(&self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> {
104104
self.data_source
105105
.load_data(id, offset, length)
106106
.ok_or(Error::SnapshotDataLoadError)

0 commit comments

Comments
 (0)