lmdb: actually assign the lmdb hints db to sys.Hints, it was created and discarded so hints never persisted.

This commit is contained in:
Yasuhiro Matsumoto
2026-07-15 08:39:29 +09:00
parent 80ce8059ea
commit 49713588bd

View File

@@ -22,9 +22,10 @@ func setupLocalDatabases(c *cli.Command, sys *sdk.System) {
hintsPath := filepath.Join(configPath, "outbox/hints")
os.MkdirAll(hintsPath, 0755)
_, err := lmdbh.NewLMDBHints(hintsPath)
if err != nil {
if hdb, err := lmdbh.NewLMDBHints(hintsPath); err != nil {
log("failed to create lmdb hints db at '%s': %s\n", hintsPath, err)
} else {
sys.Hints = hdb
}
eventsPath := filepath.Join(configPath, "events")