MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / InitIndex

Function InitIndex

internal/bootstrap/index.go:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func InitIndex() {
9 progress, err := search.Progress()
10 if err != nil {
11 log.Errorf("init index error: %+v", err)
12 return
13 }
14 if !progress.IsDone {
15 progress.IsDone = true
16 search.WriteProgress(progress)
17 }
18}

Callers 1

InitFunction · 0.85

Calls 2

ProgressFunction · 0.92
WriteProgressFunction · 0.92

Tested by

no test coverage detected