Skip to content

Commit 6ce8d76

Browse files
committed
feat: default to 1-thread execution
Reduces memory usage with minimal effect to performance
1 parent 7bde32f commit 6ce8d76

File tree

3 files changed

+2
-40
lines changed

3 files changed

+2
-40
lines changed

Cargo.lock

Lines changed: 0 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tree-sitter = "0.20.10"
4646
env_logger = "0.11.3"
4747
ropey = "1.5.0"
4848
serde_json = "1.0.108"
49-
tokio = { version = "1.17.0", features = ["full"] }
49+
tokio = { version = "1.17.0", features = ["macros", "rt", "fs", "io-std"] }
5050
tower-lsp = { version = "0.20.0", features = ["proposed"] }
5151
serde = { version = "1.0", features = ["derive"] }
5252
dashmap = "5.1.0"

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ impl LanguageServer for Backend {
724724
}
725725
}
726726

727-
#[tokio::main]
727+
#[tokio::main(flavor = "current_thread")]
728728
async fn main() {
729729
let outlog = std::env::var("ODOO_LSP_LOG").ok().map(|var| {
730730
let path = match var.as_str() {

0 commit comments

Comments
 (0)