You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
finnaly I start the app using cargo run, shows error like this:
thread 'main' panicked at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.10.1/src/runtime/blocking/shutdown.rs:51:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
what should I do fix this problem?
The text was updated successfully, but these errors were encountered:
This issue is a little old - but the problem is this crate is synchronous and tokio is complaining that you're attempting to call a synchronous (blocking) piece of code in an asynchronous context.
I tried to regitstry my rust app into consul using consul rust, first I add dependencies in Cargo.toml:
consul = "0.4.2"
this is my rust code tried to registry app into consul look like:
then I added the env config into .env file in the root of my project:
finnaly I start the app using cargo run, shows error like this:
what should I do fix this problem?
The text was updated successfully, but these errors were encountered: