This commit is contained in:
fiatjaf
2023-11-09 13:27:41 -03:00
parent cc8695a3cc
commit 0041a3621e
4 changed files with 9 additions and 25 deletions

View File

@@ -44,26 +44,6 @@ func (b *BadgerBackend) Init() error {
b.MaxLimit = 500
}
// DEBUG: inspecting keys on startup
// db.View(func(txn *badger.Txn) error {
// opts := badger.DefaultIteratorOptions
// opts.PrefetchSize = 10
// it := txn.NewIterator(opts)
// defer it.Close()
// for it.Rewind(); it.Valid(); it.Next() {
// item := it.Item()
// k := item.Key()
// err := item.Value(func(v []byte) error {
// fmt.Println("key:", k)
// return nil
// })
// if err != nil {
// return err
// }
// }
// return nil
// })
return nil
}