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

chore: bump rdkafka to v0.37.0 #239

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tabVersion
Copy link

No description provided.

Copy link
Member

@wangrunji0408 wangrunji0408 left a comment

Choose a reason for hiding this comment

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

Because we have made a lot modifications to the upstream version, directly copying the upstream code might lead to problems. Previously, my method to upgrade the rdkafka version was as follows:

  1. Get the diff between madsim-rdkafka/src/std and the corresponding community version.
  2. Completely reset madsim-rdkafka/src/std to the new community version.
  3. Apply the diff and resolve any conflicts.

Comment on lines -337 to 390
#[async_trait::async_trait]
impl FromClientConfig for AdminClient<DefaultClientContext> {
async fn from_config(config: &ClientConfig) -> KafkaResult<AdminClient<DefaultClientContext>> {
AdminClient::from_config_and_context(config, DefaultClientContext).await
fn from_config(config: &ClientConfig) -> KafkaResult<AdminClient<DefaultClientContext>> {
AdminClient::from_config_and_context(config, DefaultClientContext)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

We should keep these functions async for simulation?

https://github.com/madsim-rs/madsim/tree/main/madsim-rdkafka#api-modification

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.

2 participants