justinmclean opened a new issue, #54:
URL: https://github.com/apache/iggy-website/issues/54
The quick example on `docs/sdk/rust/intro.mdx` calls `IggyMessage::from_str`
without `use std::str::FromStr`. The prelude does not bring the trait in, so
it
fails to compile:
error[E0599]: no function or associated item named `from_str` found for
struct `iggy::prelude::IggyMessage` in the current scope
With that fixed it still fails at runtime. It creates the topic with 2
partitions, sends with `Partitioning::balanced()`, then polls `Some(1)`
specifically, so the message can land in a partition the poll never reads.
Partitions are also zero-indexed, so 1 is wrong regardless.
Smaller problems in the same snippet: it connects to `localhost` where the
server listens on IPv4 only by default, it polls `Offset(0)` with autocommit
off so every run returns the same messages, and `create_stream` /
`create_topic`
are unconditional so a second run fails.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]