Issue with blocking::proto_raw::ProtoRawEncoder in Asynchronous Context #127
Unanswered
antonmithun-work
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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