aboutsummaryrefslogtreecommitdiff
path: root/src/app/mod.rs
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-22 18:43:12 +0200
committerGitHub <noreply@github.com>2026-09-22 19:43:12 +0300
commitdd33ddf28d693b2c64ed91f75656c61416ee2538 (patch)
tree229769fa9e2535b72dc39ba0f64593ef5fdc93a2 /src/app/mod.rs
parent1c6397b1cddb288099ed212a5979732698bd72c2 (diff)
fix: move worktree lookups async (#4492)
Diffstat (limited to 'src/app/mod.rs')
-rw-r--r--src/app/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs
index 7ff3040b..03e89026 100644
--- a/src/app/mod.rs
+++ b/src/app/mod.rs
@@ -124,6 +124,7 @@ pub struct App {
pub(crate) git_identity_refresh_requested: bool,
pub(crate) git_status_cache: HashMap<std::path::PathBuf, crate::workspace::GitStatusCacheEntry>,
pub(crate) pending_api_worktree_creates: HashMap<std::path::PathBuf, u64>,
+ pub(crate) worktree_read_slots: std::sync::Arc<tokio::sync::Semaphore>,
pub(crate) pending_api_worktree_removes: HashMap<String, u64>,
pub(crate) pending_api_worktree_remove_paths: HashMap<std::path::PathBuf, u64>,
pub(crate) pending_worktree_remove_runtime_exits: HashMap<crate::layout::PaneId, usize>,
@@ -588,6 +589,7 @@ impl App {
git_identity_refresh_requested: false,
git_status_cache: HashMap::new(),
pending_api_worktree_creates: HashMap::new(),
+ worktree_read_slots: std::sync::Arc::new(tokio::sync::Semaphore::new(8)),
pending_api_worktree_removes: HashMap::new(),
pending_api_worktree_remove_paths: HashMap::new(),
pending_worktree_remove_runtime_exits: HashMap::new(),