MCPcopy
hub / github.com/songquanpeng/one-api / SyncOptions

Function SyncOptions

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

Source from the content-addressed store, hash-verified

93}
94
95func SyncOptions(frequency int) {
96 for {
97 time.Sleep(time.Duration(frequency) * time.Second)
98 logger.SysLog("syncing options from database")
99 loadOptionsFromDatabase()
100 }
101}
102
103func UpdateOption(key string, value string) error {
104 // Save to database first

Callers 1

mainFunction · 0.92

Calls 2

SysLogFunction · 0.92
loadOptionsFromDatabaseFunction · 0.85

Tested by

no test coverage detected