Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

503 B
Raw Blame
const DEFAULT_LOCK_CONFIG = {
    staleRecovery: "fail-closed",
};
let lockConfig = { ...DEFAULT_LOCK_CONFIG };
export function configureFsSafeLocks(config) {
    // Process defaults only fill lock options after a caller explicitly enables
    // locking for a resource; this must never turn sidecar locks on globally.
    lockConfig = { ...lockConfig, ...config };
}
export function getFsSafeLockConfig() {
    return { ...lockConfig, retry: lockConfig.retry ? { ...lockConfig.retry } : undefined };
}