Verified Commit 9551c427 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

subscribe to input topic

parent 5211c227
Pipeline #31539 passed with stages
in 9 minutes and 45 seconds
...@@ -155,6 +155,10 @@ fn main() -> Result<()> { ...@@ -155,6 +155,10 @@ fn main() -> Result<()> {
) )
.context("producer built")?; .context("producer built")?;
consumer
.subscribe(&[input_topic])
.expect("topic subscription failed");
let mut counter = Counter::new(); let mut counter = Counter::new();
loop { loop {
for msg_result in consumer.iter() { for msg_result in consumer.iter() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment