File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
example-projects/rdkafka-example Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,5 +19,7 @@ tokio = { version = "^0.2", features = ["full"] }
19
19
clap = " 2.33.1"
20
20
21
21
[dependencies .rdkafka ]
22
- version = " ~0.23"
23
- features = [" ssl" , " sasl" ]
22
+ version = " ^0.24"
23
+ features = [" cmake-build" ]
24
+
25
+ [workspace ]
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use rdkafka::config::{ClientConfig, RDKafkaLogLevel};
9
9
use rdkafka:: consumer:: stream_consumer:: StreamConsumer ;
10
10
use rdkafka:: consumer:: { CommitMode , Consumer , DefaultConsumerContext } ;
11
11
use rdkafka:: producer:: { FutureProducer , FutureRecord } ;
12
+ use std:: time:: Duration ;
12
13
13
14
// You need a running Kafka cluster to try out this example.
14
15
// With docker: docker run --rm --net=host -e ADV_HOST=localhost -e SAMPLEDATA=0 lensesio/fast-data-dev
@@ -78,7 +79,7 @@ async fn produce(brokers: &str, topic_name: &str) {
78
79
FutureRecord :: to ( topic_name)
79
80
. message_record ( & message_record)
80
81
. key ( & format ! ( "Key {}" , i) ) ,
81
- 0 ,
82
+ Duration :: from_secs ( 10 ) ,
82
83
)
83
84
. await ;
84
85
You can’t perform that action at this time.
0 commit comments