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

fix: wrap fetch_watermarks in spawn_blocking #196

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

wangrunji0408
Copy link
Member

Please take a look. @BugenZhao @tabVersion

Will release as madsim-rdkafka v0.3.3.

Copy link

@tabVersion tabVersion left a comment

Choose a reason for hiding this comment

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

generally LGTM

@BugenZhao
Copy link
Contributor

Is there a plan for other synchronous interfaces as well? 🥺

@wangrunji0408
Copy link
Member Author

Is there a plan for other synchronous interfaces as well? 🥺

Maybe migrated case by case. 🥹

@wangrunji0408 wangrunji0408 merged commit ca93352 into main Feb 28, 2024
24 checks passed
@wangrunji0408 wangrunji0408 deleted the wrj/spawn-blocking branch February 28, 2024 10:03
let ret = unsafe {
rdsys::rd_kafka_query_watermark_offsets(
self.native_ptr(),
let native_client = unsafe { NativeClient::from_ptr(self.native_ptr()) };
Copy link
Contributor

Choose a reason for hiding this comment

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

NativeClient will call rd_kafka_destroy when it's get dropped (behavior of NativePtr). Will this lead to problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ohhh. I think so. Thanks for your troubleshooting!

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