mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 11:30:28 +00:00
set sqlite _busy_timeout to 5s to handle database is locked errors
This commit is contained in:
parent
00b0261bc3
commit
3b99e78135
@ -61,7 +61,7 @@ func (c *Config) DSN() string {
|
|||||||
}
|
}
|
||||||
dsn = mc.FormatDSN()
|
dsn = mc.FormatDSN()
|
||||||
case SQLITE:
|
case SQLITE:
|
||||||
dsn = c.Name + "?_loc=auto"
|
dsn = c.Name + "?_loc=auto&_busy_timeout=10000"
|
||||||
}
|
}
|
||||||
|
|
||||||
return dsn
|
return dsn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user