Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan committed Jan 17, 2025
1 parent e7b61e1 commit 9a9021d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/connector/src/source/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ pub type SourceEnumeratorContextRef = Arc<SourceEnumeratorContext>;
pub trait AnySplitEnumerator: Send {
async fn list_splits(&mut self) -> Result<Vec<SplitImpl>>;
async fn on_drop_fragments(&mut self, _fragment_ids: Vec<u32>) -> Result<()>;
async fn on_finish_backfill(&mut self, _fragment_ids: Vec<u32>) -> Result<()>;
}

#[async_trait]
Expand All @@ -223,6 +224,10 @@ impl<T: SplitEnumerator<Split: Into<SplitImpl>>> AnySplitEnumerator for T {
async fn on_drop_fragments(&mut self, _fragment_ids: Vec<u32>) -> Result<()> {
SplitEnumerator::on_drop_fragments(self, _fragment_ids).await
}

async fn on_finish_backfill(&mut self, _fragment_ids: Vec<u32>) -> Result<()> {
SplitEnumerator::on_finish_backfill(self, _fragment_ids).await
}
}

/// The max size of a chunk yielded by source stream.
Expand Down

0 comments on commit 9a9021d

Please sign in to comment.