MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Repair

Method Repair

driver/ipfs-synckv/db.go:142–150  ·  view source on GitHub ↗
(path string, cfg *config.Config)

Source from the content-addressed store, hash-verified

140 return db, nil
141}
142
143func (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
153type DB struct {

Callers

nothing calls this directly

Calls 2

newOptionsFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected