Increase tokio stack size
@@ -31,8 +31,17 @@ use sentry::{
};
use slog::Drain;
-#[tokio::main]
-async fn main() -> Result<()> {
+fn main() -> Result<()> {
+ tokio::runtime::Builder::new_multi_thread()
+ .enable_all()
+ .thread_stack_size(4 * 1024 * 1024)
+ .build()?
+ .block_on(async {
+ tokio_main().await
+ })
+}
+
+async fn tokio_main() -> Result<()> {
let opts: crate::core::Opts = crate::core::Opts::parse();
// Initialize sentry.
