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

Function SyncOptions

model/option.go:159–165  ·  view source on GitHub ↗
(frequency int)

Source from the content-addressed store, hash-verified

157}
158
159func SyncOptions(frequency int) {
160 for {
161 time.Sleep(time.Duration(frequency) * time.Second)
162 common.SysLog("syncing options from database")
163 loadOptionsFromDatabase()
164 }
165}
166
167func UpdateOption(key string, value string) error {
168 // Save to database first

Callers 1

mainFunction · 0.92

Calls 2

SysLogFunction · 0.92
loadOptionsFromDatabaseFunction · 0.85

Tested by

no test coverage detected