From 4fa0d412023ffdefc4ba63eecccd4b74e712ff7d Mon Sep 17 00:00:00 2001 From: Daenney Date: Sat, 14 Sep 2024 16:36:25 +0200 Subject: [chore] Update go-sqlite3 to 0.18.3 (#3295) * [chore] Update go-sqlite3 to 0.18.3 * [chore] Fix getting the sqlite3.Conn --- vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go') diff --git a/vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go b/vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go index ffa1f5e19..2616a0f5e 100644 --- a/vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go +++ b/vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go @@ -32,9 +32,9 @@ func osGetPendingLock(file *os.File, block bool) _ErrorCode { return osWriteLock(file, _PENDING_BYTE, 1, timeout) } -func osGetExclusiveLock(file *os.File, wait bool) _ErrorCode { +func osGetExclusiveLock(file *os.File, block bool) _ErrorCode { var timeout time.Duration - if wait { + if block { timeout = time.Millisecond } // Acquire the EXCLUSIVE lock. -- cgit v1.2.3