You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So a couple of minor things here. Firstly, I am very new to rust so apologies if my assumptions are wrong. I took your code to compile and test, and I got thrown this error:
error[E0308]: mismatched types
--> src/main.rs:44:30
|
44 | .with_offset_storage(Some(GroupOffsetStorage::Kafka))
| ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `GroupOffsetStorage`, found `Option<GroupOffsetStorage>`
| |
| arguments to this method are incorrect
|
= note: expected enum `GroupOffsetStorage`
found enum `Option<GroupOffsetStorage>`
note: method defined here
--> /Users/owen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kafka-0.9.0/src/consumer/builder.rs:157:12
|
157 | pub fn with_offset_storage(mut self, storage: GroupOffsetStorage) -> Builder {
| ^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rv-check` (bin "rv-check") due to 1 previous error
I decided to remove the Some() wrapper, as it looks like the .with_offset_storage is expecting a GroupOffsetStorage directly, or maybe I am misunderstanding. However when I remove it, the code compiles and appears to work well.
in the example given you also have the pattern: r#"routeviews.amsix..*.bmp_raw"#
routeviews has 2 collectors at amsix : route-views.amsix.routeviews.org and amsix.ams.routeviews.org and I am pretty sure this is just the kind of topic collision we wanted to avoid :-)
thanks so much for your work on this Mingwei!!
The text was updated successfully, but these errors were encountered:
So a couple of minor things here. Firstly, I am very new to rust so apologies if my assumptions are wrong. I took your code to compile and test, and I got thrown this error:
I decided to remove the Some() wrapper, as it looks like the .with_offset_storage is expecting a GroupOffsetStorage directly, or maybe I am misunderstanding. However when I remove it, the code compiles and appears to work well.
in the example given you also have the pattern: r#"routeviews.amsix..*.bmp_raw"#
which is catching output from the 2 collectors:
routeviews has 2 collectors at amsix : route-views.amsix.routeviews.org and amsix.ams.routeviews.org and I am pretty sure this is just the kind of topic collision we wanted to avoid :-)
thanks so much for your work on this Mingwei!!
The text was updated successfully, but these errors were encountered: