Skip to content

Commit

Permalink
default to synchronous=NORMAL
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Nov 8, 2024
1 parent ee3370e commit 6f00af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfg/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ type Config struct {
// FillDefaults replaces missing or invalid settings with defaults.
func (c *Config) FillDefaults() {
if c.DatabaseOptions == "" {
c.DatabaseOptions = "_journal_mode=WAL&_busy_timeout=5000"
c.DatabaseOptions = "_journal_mode=WAL&_synchronous=1&_busy_timeout=5000"
}

if c.RegistrationInterval <= 0 {
Expand Down

0 comments on commit 6f00af8

Please sign in to comment.