cleanup.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user