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

Function AutomaticallyUpdateChannels

controller/channel-billing.go:427–434  ·  view source on GitHub ↗
(frequency int)

Source from the content-addressed store, hash-verified

425}
426
427func AutomaticallyUpdateChannels(frequency int) {
428 for {
429 time.Sleep(time.Duration(frequency) * time.Minute)
430 logger.SysLog("updating all channels")
431 _ = updateAllChannelsBalance()
432 logger.SysLog("channels update done")
433 }
434}

Callers

nothing calls this directly

Calls 2

SysLogFunction · 0.92
updateAllChannelsBalanceFunction · 0.70

Tested by

no test coverage detected