mirror of
https://github.com/fiatjaf/nak.git
synced 2026-10-05 15:18:23 +00:00
lmdb: actually assign the lmdb hints db to sys.Hints, it was created and discarded so hints never persisted.
This commit is contained in:
@@ -22,9 +22,10 @@ func setupLocalDatabases(c *cli.Command, sys *sdk.System) {
|
|||||||
|
|
||||||
hintsPath := filepath.Join(configPath, "outbox/hints")
|
hintsPath := filepath.Join(configPath, "outbox/hints")
|
||||||
os.MkdirAll(hintsPath, 0755)
|
os.MkdirAll(hintsPath, 0755)
|
||||||
_, err := lmdbh.NewLMDBHints(hintsPath)
|
if hdb, err := lmdbh.NewLMDBHints(hintsPath); err != nil {
|
||||||
if err != nil {
|
|
||||||
log("failed to create lmdb hints db at '%s': %s\n", hintsPath, err)
|
log("failed to create lmdb hints db at '%s': %s\n", hintsPath, err)
|
||||||
|
} else {
|
||||||
|
sys.Hints = hdb
|
||||||
}
|
}
|
||||||
|
|
||||||
eventsPath := filepath.Join(configPath, "events")
|
eventsPath := filepath.Join(configPath, "events")
|
||||||
|
|||||||
Reference in New Issue
Block a user