Split worktree updates and only send 256 entries at a time
This commit is contained in:
parent
5df0a6a425
commit
09bb3ddeb8
5 changed files with 88 additions and 70 deletions
|
@ -804,6 +804,7 @@ impl Server {
|
|||
.collect(),
|
||||
visible: worktree.visible,
|
||||
scan_id: shared_worktree.scan_id,
|
||||
is_complete: worktree.is_complete,
|
||||
})
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
@ -963,6 +964,7 @@ impl Server {
|
|||
&request.payload.removed_entries,
|
||||
&request.payload.updated_entries,
|
||||
request.payload.scan_id,
|
||||
request.payload.is_last_update,
|
||||
)?;
|
||||
(connection_ids, metadata_changed, extension_counts.clone())
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue