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 e6f55b1 commit 2342702Copy full SHA for 2342702
node/src/main.rs
@@ -78,8 +78,21 @@ fn read_expensive_queries(
78
Ok(queries)
79
}
80
81
-#[tokio::main]
82
-async fn main() {
+fn main() {
+ let max_blocking: usize = std::env::var("GRAPH_MAX_BLOCKING_THREADS")
83
+ .ok()
84
+ .and_then(|v| v.parse().ok())
85
+ .unwrap_or(512);
86
+
87
+ tokio::runtime::Builder::new_multi_thread()
88
+ .enable_all()
89
+ .max_blocking_threads(max_blocking)
90
+ .build()
91
+ .unwrap()
92
+ .block_on(async { main_inner().await })
93
+}
94
95
+async fn main_inner() {
96
env_logger::init();
97
98
let env_vars = Arc::new(EnvVars::from_env().unwrap());
0 commit comments