Skip to content

Commit 740f172

Browse files
committed
changes to generic params to make everything backward compatible
1 parent ab684c8 commit 740f172

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/producer/base_producer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ where
443443
}
444444
}
445445

446-
impl<C, Part> Producer<Part, C> for BaseProducer<C, Part>
446+
impl<C, Part> Producer<C, Part> for BaseProducer<C, Part>
447447
where
448448
Part: Partitioner,
449449
C: ProducerContext<Part>,
@@ -659,7 +659,7 @@ where
659659
}
660660
}
661661

662-
impl<C, Part> Producer<Part, C> for ThreadedProducer<C, Part>
662+
impl<C, Part> Producer<C, Part> for ThreadedProducer<C, Part>
663663
where
664664
Part: Partitioner,
665665
C: ProducerContext<Part> + 'static,

src/producer/future_producer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ where
371371
}
372372
}
373373

374-
impl<C, R, Part> Producer<Part, FutureProducerContext<C>> for FutureProducer<C, R, Part>
374+
impl<C, R, Part> Producer<FutureProducerContext<C>, Part> for FutureProducer<C, R, Part>
375375
where
376376
C: ClientContext + 'static,
377377
R: AsyncRuntime,

src/producer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl ProducerContext<NoCustomPartitioner> for DefaultProducerContext {
267267
}
268268

269269
/// Common trait for all producers.
270-
pub trait Producer<Part, C = DefaultProducerContext>
270+
pub trait Producer<C = DefaultProducerContext, Part = NoCustomPartitioner>
271271
where
272272
Part: Partitioner,
273273
C: ProducerContext<Part>,

0 commit comments

Comments
 (0)