MCPcopy Create free account
hub / github.com/QuantumNous/new-api / refreshChannelRuntimeCache

Function refreshChannelRuntimeCache

controller/channel_upstream_update.go:523–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521}
522
523func refreshChannelRuntimeCache() {
524 if common.MemoryCacheEnabled {
525 func() {
526 defer func() {
527 if r := recover(); r != nil {
528 common.SysLog(fmt.Sprintf("InitChannelCache panic: %v", r))
529 }
530 }()
531 model.InitChannelCache()
532 }()
533 }
534}
535
536func shouldSendUpstreamModelUpdateNotification(now int64, changedChannels int, failedChannels int) bool {
537 if changedChannels <= 0 && failedChannels <= 0 {

Calls 1

InitChannelCacheFunction · 0.92

Tested by

no test coverage detected