Skip to content

Commit 0393bce

Browse files
committed
fix python compile
1 parent 3e4b0ba commit 0393bce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python/src/reader.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,15 @@ struct ObspecReader {
115115
}
116116

117117
impl AsyncFileReader for ObspecReader {
118-
fn get_bytes(&self, range: Range<u64>) -> BoxFuture<'_, AsyncTiffResult<Bytes>> {
118+
fn get_metadata_bytes(&self, range: Range<u64>) -> BoxFuture<'_, AsyncTiffResult<Bytes>> {
119119
self.backend.get_range_wrapper(&self.path, range).boxed()
120120
}
121121

122-
fn get_byte_ranges(
122+
fn get_image_bytes(&self, range: Range<u64>) -> BoxFuture<'_, AsyncTiffResult<Bytes>> {
123+
self.backend.get_range_wrapper(&self.path, range).boxed()
124+
}
125+
126+
fn get_image_byte_ranges(
123127
&self,
124128
ranges: Vec<Range<u64>>,
125129
) -> BoxFuture<'_, AsyncTiffResult<Vec<Bytes>>> {

0 commit comments

Comments
 (0)