mirror of
https://github.com/openziti/zrok.git
synced 2025-02-22 05:01:01 +01:00
fix for sqlite transactional concurrency issue (#40)
This commit is contained in:
parent
be41138929
commit
99bf504301
@ -32,6 +32,7 @@ func Open(cfg *Config) (*Store, error) {
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "error opening database '%v'", cfg.Path)
|
||||
}
|
||||
dbx.DB.SetMaxOpenConns(1)
|
||||
logrus.Infof("opened database '%v'", cfg.Path)
|
||||
dbx.MapperFunc(strcase.ToSnake)
|
||||
store := &Store{cfg: cfg, db: dbx}
|
||||
|
Loading…
Reference in New Issue
Block a user