File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class KafkaReplicatorSink(BaseSink):
2929
3030 ```python
3131 from quixstreams import Application
32- from quixstreams.sinks.community.kafka import KafkaSink
32+ from quixstreams.sinks.community.kafka import KafkaReplicatorSink
3333
3434 app = Application(
3535 consumer_group="group",
@@ -38,7 +38,7 @@ class KafkaReplicatorSink(BaseSink):
3838 topic = app.topic("input-topic")
3939
4040 # Define the external Kafka cluster configuration
41- kafka_sink = KafkaSink (
41+ kafka_sink = KafkaReplicatorSink (
4242 broker_address="external-kafka:9092",
4343 topic_name="output-topic",
4444 value_serializer="json",
@@ -206,4 +206,6 @@ def flush(self) -> None:
206206 )
207207 raise SinkBackpressureError (retry_after = 10.0 )
208208
209- logger .debug (f'Successfully flushed KafkaSink for topic "{ self ._topic_name } "' )
209+ logger .debug (
210+ f'Successfully flushed KafkaReplicatorSink for topic "{ self ._topic_name } "'
211+ )
You can’t perform that action at this time.
0 commit comments