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 committed Apr 26, 2023
1 parent 2d3c3c4 commit c712590
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 @@ -288,6 +288,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 c712590

Please sign in to comment.