-
I'm using the 'fail-fast' approach in my code, but I found that panic happens in handler does not cause the whole program shutdown. tokio::runtime::Builder::new_multi_thread()
.unhandled_panic(UnhandledPanic::ShutdownRuntime)
.enable_all()
.build()
.unwrap()
.block_on(async_main()) The version of axum I used is rev tokio = { version = "1.28", features = ["sync", "macros", "rt-multi-thread"] }
tower-http = { version = "0.4", features = ["full"] } |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If setting |
Beta Was this translation helpful? Give feedback.
-
Well, I set panic=abort to resolve this which kind like a hack here |
Beta Was this translation helpful? Give feedback.
Well, I set panic=abort to resolve this which kind like a hack here