(path string, cfg *config.Config)
| 140 | return db, nil |
| 141 | } |
| 142 | |
| 143 | func (s Store) Repair(path string, cfg *config.Config) error { |
| 144 | db, err := leveldb.RecoverFile(path, newOptions(&cfg.LevelDB)) |
| 145 | if err != nil { |
| 146 | return err |
| 147 | } |
| 148 | |
| 149 | db.Close() |
| 150 | return nil |
| 151 | } |
| 152 | |
| 153 | type DB struct { |
nothing calls this directly
no test coverage detected