Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Schüpbach
Kafkaesque
Commits
9551c427
Verified
Commit
9551c427
authored
Aug 18, 2021
by
Sebastian Schüpbach
Browse files
subscribe to input topic
parent
5211c227
Pipeline
#31539
passed with stages
in 9 minutes and 45 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/bin/processor.rs
View file @
9551c427
...
...
@@ -155,6 +155,10 @@ fn main() -> Result<()> {
)
.context
(
"producer built"
)
?
;
consumer
.subscribe
(
&
[
input_topic
])
.expect
(
"topic subscription failed"
);
let
mut
counter
=
Counter
::
new
();
loop
{
for
msg_result
in
consumer
.iter
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment