MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / loadOptionsFromDatabase

Function loadOptionsFromDatabase

model/option.go:149–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func loadOptionsFromDatabase() {
150 options, _ := AllOption()
151 for _, option := range options {
152 err := updateOptionMap(option.Key, option.Value)
153 if err != nil {
154 common.SysError("failed to update option map: " + err.Error())
155 }
156 }
157}
158
159func SyncOptions(frequency int) {
160 for {

Callers 2

InitOptionMapFunction · 0.85
SyncOptionsFunction · 0.85

Calls 4

SysErrorFunction · 0.92
AllOptionFunction · 0.85
updateOptionMapFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected