Issue with blocking::proto_raw::ProtoRawEncoder in Asynchronous Context #127
Unanswered
antonmithun-work
asked this question in
Q&A
Replies: 1 comment
-
|
Missed this somehow. It's mostly the http calls, but therefore it has the async alternatives. I'm considering making it async only, as I think nowadays that's pretty much the standard. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using schema_registry_converter::blocking::proto_raw::ProtoRawEncoder and creating the new decoder in the main function with #[tokio::main()]. However, this throws the error:
Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
Out of curiosity, what blocking call happens in let encoder = ProtoRawEncoder::new(sr_settings) that causes this error?
FYI, I'm also exploring the async_impl ProtoRawEncoder for this use case.
Beta Was this translation helpful? Give feedback.
All reactions