(path string, cfg *config.Config)
| 87 | } |
| 88 | |
| 89 | func (s Store) Repair(path string, cfg *config.Config) error { |
| 90 | db, err := leveldb.RecoverFile(path, newOptions(&cfg.LevelDB)) |
| 91 | if err != nil { |
| 92 | return err |
| 93 | } |
| 94 | |
| 95 | db.Close() |
| 96 | return nil |
| 97 | } |
| 98 | |
| 99 | type DB struct { |
| 100 | path string |
nothing calls this directly
no test coverage detected