"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c08631d6ffbeaa363797d7a20a133857e5c0ba6c"
Unverified Commit 05534f37 authored by J-shang's avatar J-shang Committed by GitHub
Browse files

fix lock bug (#3207)

parent 468917ca
...@@ -130,4 +130,4 @@ class SimplePreemptiveLock(filelock.SoftFileLock): ...@@ -130,4 +130,4 @@ class SimplePreemptiveLock(filelock.SoftFileLock):
return None return None
def get_file_lock(path: string, stale=-1): def get_file_lock(path: string, stale=-1):
return SimplePreemptiveLock(path + '.lock', stale=-1) return SimplePreemptiveLock(path + '.lock', stale=stale)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment