editor: Limit the amount of git processes spawned per multibuffer (#41472)

Release Notes:

- Reduced the number of concurrent git processes spawned for blaming
This commit is contained in:
Lukas Wirth
2025-10-29 16:08:41 +00:00
committed by GitHub
parent 75b1da0f65
commit 3583e129d1
2 changed files with 18 additions and 14 deletions
+11 -12
View File
@@ -1279,18 +1279,17 @@ impl GitRepository for RealGitRepository {
.remote_url("upstream")
.or_else(|| self.remote_url("origin"));
self.executor
.spawn(async move {
crate::blame::Blame::for_path(
&git_binary_path,
&working_directory?,
&path,
&content,
remote_url,
)
.await
})
.boxed()
async move {
crate::blame::Blame::for_path(
&git_binary_path,
&working_directory?,
&path,
&content,
remote_url,
)
.await
}
.boxed()
}
fn diff(&self, diff: DiffType) -> BoxFuture<'_, Result<String>> {