This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch lazy-reader
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 4f65839d6fd67db5281f01c1713c321102ff08d7
Author: Xuanwo <[email protected]>
AuthorDate: Wed Oct 25 17:36:04 2023 +0800

    Remove last_seek_pos
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/src/raw/oio/read/into_seekable_read_by_range.rs | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/core/src/raw/oio/read/into_seekable_read_by_range.rs 
b/core/src/raw/oio/read/into_seekable_read_by_range.rs
index 2cfb0c2de..0092863a6 100644
--- a/core/src/raw/oio/read/into_seekable_read_by_range.rs
+++ b/core/src/raw/oio/read/into_seekable_read_by_range.rs
@@ -63,7 +63,6 @@ pub fn into_seekable_read_by_range<A: Accessor, R>(
         size,
         cur: 0,
         state: State::<R>::Idle,
-        last_seek_pos: None,
     }
 }
 
@@ -77,13 +76,6 @@ pub struct ByRangeSeekableReader<A: Accessor, R> {
     size: Option<u64>,
     cur: u64,
     state: State<R>,
-
-    /// Seek operation could return Pending which may lead
-    /// `SeekFrom::Current(off)` been input multiple times.
-    ///
-    /// So we need to store the last seek pos to make sure
-    /// we always seek to the right position.
-    last_seek_pos: Option<u64>,
 }
 
 enum State<R> {

Reply via email to