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

Function WriteProgress

internal/search/util.go:24–39  ·  view source on GitHub ↗
(progress *model.IndexProgress)

Source from the content-addressed store, hash-verified

22}
23
24func WriteProgress(progress *model.IndexProgress) {
25 p, err := utils.Json.MarshalToString(progress)
26 if err != nil {
27 log.Errorf("marshal progress error: %+v", err)
28 }
29 err = op.SaveSettingItem(&model.SettingItem{
30 Key: conf.IndexProgress,
31 Value: p,
32 Type: conf.TypeText,
33 Group: model.SINGLE,
34 Flag: model.PRIVATE,
35 })
36 if err != nil {
37 log.Errorf("save progress error: %+v", err)
38 }
39}
40
41func updateIgnorePaths(customIgnorePaths string) {
42 storages := op.GetAllStorages()

Callers 4

InitIndexFunction · 0.92
UpdateIndexFunction · 0.92
ClearIndexFunction · 0.92
BuildIndexFunction · 0.85

Calls 1

SaveSettingItemFunction · 0.92

Tested by

no test coverage detected