Skip to content

Commit

Permalink
Early initialize database
Browse files Browse the repository at this point in the history
Workaround for benbjohnson#436
  • Loading branch information
hifi authored and Athos Couto committed May 30, 2023
1 parent b4cfb93 commit e222b2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func (db *DB) Open() (err error) {
go func() { defer db.wg.Done(); db.monitor() }()
}

// Try to initialize the database early, allow failing.
db.init()

return nil
}

Expand Down

0 comments on commit e222b2a

Please sign in to comment.