mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-29 06:32:28 +00:00
fix: keep registry reads lock-free
This commit is contained in:
parent
bf42c43419
commit
f12cd7f6af
1 changed files with 4 additions and 1 deletions
|
|
@ -1943,7 +1943,10 @@ const listRegisteredReposUnlocked = async (opts?: {
|
|||
|
||||
export const listRegisteredRepos = async (opts?: {
|
||||
validate?: boolean;
|
||||
}): Promise<RegistryEntry[]> => withRegistryLock(() => listRegisteredReposUnlocked(opts));
|
||||
}): Promise<RegistryEntry[]> =>
|
||||
opts?.validate
|
||||
? withRegistryLock(() => listRegisteredReposUnlocked(opts))
|
||||
: listRegisteredReposUnlocked(opts);
|
||||
|
||||
// ─── Global CLI Config (~/.gitnexus/config.json) ─────────────────────────
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue