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

Method Repair

driver/ipfs/db.go:89–97  ·  view source on GitHub ↗
(path string, cfg *config.Config)

Source from the content-addressed store, hash-verified

87}
88
89func (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
99type DB struct {
100 path string

Callers

nothing calls this directly

Calls 2

newOptionsFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected