mirror of
https://github.com/syncthing/syncthing.git
synced 2025-12-23 22:18:14 -05:00
fix(sqlite): apply options (#10049)
@calmh it seems `sqlite.Open` forgets to apply options supplied to it (currently only the delete retention interval).
This commit is contained in:
committed by
GitHub
parent
cbded11c43
commit
e0c1abc5fe
@@ -65,6 +65,10 @@ func Open(path string, opts ...Option) (*DB, error) {
|
||||
folderDBOpener: openFolderDB,
|
||||
}
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(db)
|
||||
}
|
||||
|
||||
return db, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user