Skip to content

Commit 781f559

Browse files
quakemohanson
authored andcommitted
chore: Snapshot2Context load_data immutable (#455)
1 parent d8cb880 commit 781f559

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
@@ -104,7 +104,7 @@ impl<I: Clone + PartialEq, D: DataSource<I>> Snapshot2Context<I, D> {
104104
Ok(())
105105
}
106106

107-
pub fn load_data(&mut self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> {
107+
pub fn load_data(&self, id: &I, offset: u64, length: u64) -> Result<(Bytes, u64), Error> {
108108
self.data_source
109109
.load_data(id, offset, length)
110110
.ok_or(Error::SnapshotDataLoadError)

0 commit comments

Comments
 (0)