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