We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b53b5e commit fe7359fCopy full SHA for fe7359f
crates/cli/src/main.rs
@@ -49,8 +49,15 @@ impl sentry::TransportFactory for SentryTransportFactory {
49
}
50
51
52
-#[tokio::main]
53
-async fn main() -> anyhow::Result<ExitCode> {
+fn main() -> anyhow::Result<ExitCode> {
+ let runtime = tokio::runtime::Builder::new_multi_thread()
54
+ .enable_all()
55
+ .build()?;
56
+
57
+ runtime.block_on(async_main())
58
+}
59
60
+async fn async_main() -> anyhow::Result<ExitCode> {
61
// We're splitting the "fallible" part of main in another function to have a
62
// chance to shutdown the telemetry exporters regardless of if there was an
63
// error or not
0 commit comments