Skip to content

Commit

Permalink
Remove qualifying name for reducer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
john-z-yang committed Oct 24, 2024
1 parent 9261674 commit 9faa449
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,8 @@ pub enum ReduceShutdownBehaviour {
pub trait Reducer {
type Item;

fn reduce(
&mut self,
t: Self::Item,
) -> impl std::future::Future<Output = Result<(), anyhow::Error>> + Send;
fn flush(&mut self) -> impl std::future::Future<Output = Result<(), anyhow::Error>> + Send;
fn reduce(&mut self, t: Self::Item) -> impl Future<Output = Result<(), anyhow::Error>> + Send;
fn flush(&mut self) -> impl Future<Output = Result<(), anyhow::Error>> + Send;
fn reset(&mut self);
fn is_full(&self) -> bool;
fn get_reduce_config(&self) -> ReduceConfig;
Expand Down

0 comments on commit 9faa449

Please sign in to comment.