Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kgen utility to dump random data into Kafka #3775

Merged
merged 4 commits into from
Jul 28, 2020

Conversation

umanwizard
Copy link
Contributor

@umanwizard umanwizard commented Jul 28, 2020

This change is Reviewable

@umanwizard umanwizard requested a review from benesch July 28, 2020 20:52
src/kafka-util/src/bin/kgen.rs Show resolved Hide resolved
src/kafka-util/Cargo.toml Show resolved Hide resolved
src/kafka-util/Cargo.toml Outdated Show resolved Hide resolved
Comment on lines 13 to 18
use rdkafka::{
error::KafkaError,
producer::{BaseRecord, DefaultProducerContext, ThreadedProducer},
types::RDKafkaError,
ClientConfig,
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't enforce this (because it's impossible to) so TIOLI, but we do normally ensure that use lines have the crate at the beginning of all imports.

Considering the state of rust tooling overall I like being able to rg rdkafka.*Client and have that be guaranteed to find all modules that use rdkafka::ClientConfig.

@umanwizard umanwizard merged commit 2aaadfe into MaterializeInc:main Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants