(path string, cfg *config.Config)
| 98 | } |
| 99 | |
| 100 | func (s Store) Repair(path string, cfg *config.Config) error { |
| 101 | db, err := leveldb.RecoverFile(path, newOptions(&cfg.LevelDB)) |
| 102 | if err != nil { |
| 103 | return err |
| 104 | } |
| 105 | |
| 106 | db.Close() |
| 107 | return nil |
| 108 | } |
| 109 | |
| 110 | type DB struct { |
| 111 | path string |
nothing calls this directly
no test coverage detected