mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Update go-sqlite3 to 0.18.3 (#3295)
* [chore] Update go-sqlite3 to 0.18.3 * [chore] Fix getting the sqlite3.Conn
This commit is contained in:
4
vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go
generated
vendored
4
vendor/github.com/ncruces/go-sqlite3/vfs/os_unix_lock.go
generated
vendored
@ -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.
|
||||
|
Reference in New Issue
Block a user