Drop SQLite max connections

The SQLite transaction lock Valentin found is (slightly) faster.
So let's go with that.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
Matthew Heon
2023-03-21 14:20:34 -04:00
parent 0fbc325156
commit 3925cd653b

View File

@ -81,9 +81,6 @@ func NewSqliteState(runtime *Runtime) (_ State, defErr error) {
}
}()
// Necessary to avoid database locked errors.
conn.SetMaxOpenConns(1)
state.conn = conn
if err := state.conn.Ping(); err != nil {