Skip to content

Commit

Permalink
refacotr: remove region_id from OneshotWalEntryReader
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed May 24, 2024
1 parent 53940fd commit af68f18
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/mito2/src/wal/wal_entry_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ use super::raw_entry_reader::LogStoreReadCtx;
use super::{EntryId, WalEntryStream};
use crate::error::Result;

/// [OneShotWalEntryReader] provides the ability to read and decode entries from the underlying store.
/// [OneshotWalEntryReader] provides the ability to read and decode entries from the underlying store.
pub(crate) trait OneshotWalEntryReader: Send + Sync {
fn read(
self,
ctx: &LogStoreReadCtx,
region_id: RegionId,
start_id: EntryId,
) -> Result<WalEntryStream>;
fn read(self, ctx: &LogStoreReadCtx, start_id: EntryId) -> Result<WalEntryStream>;
}

0 comments on commit af68f18

Please sign in to comment.