Skip to content

Commit 303ed92

Browse files
authored
💄 Use stream() instead of deprecated start() (#126)
Signed-off-by: Matthias Wessendorf <[email protected]>
1 parent a1358ea commit 303ed92

File tree

1 file changed

+2
-2
lines changed
  • example-projects/rdkafka-example/src

1 file changed

+2
-2
lines changed

example-projects/rdkafka-example/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ async fn consume(brokers: &str, group_id: &str, topics: &[&str]) {
3131
.subscribe(&topics.to_vec())
3232
.expect("Can't subscribe to specified topics");
3333

34-
// consumer.start() returns a stream. The stream can be used ot chain together expensive steps,
34+
// consumer.stream() returns a stream. The stream can be used ot chain together expensive steps,
3535
// such as complex computations on a thread pool or asynchronous IO.
36-
let mut message_stream = consumer.start();
36+
let mut message_stream = consumer.stream();
3737

3838
while let Some(message) = message_stream.next().await {
3939
match message {

0 commit comments

Comments
 (0)