MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / SyncChannelCache

Function SyncChannelCache

model/channel_cache.go:75–81  ·  view source on GitHub ↗
(frequency int)

Source from the content-addressed store, hash-verified

73}
74
75func SyncChannelCache(frequency int) {
76 for {
77 time.Sleep(time.Duration(frequency) * time.Second)
78 common.SysLog("syncing channels from database")
79 InitChannelCache()
80 }
81}
82
83func CacheGetRandomSatisfiedChannel(c *gin.Context, group string, model string, retry int) (*Channel, string, error) {
84 var channel *Channel

Callers 1

mainFunction · 0.92

Calls 2

SysLogFunction · 0.92
InitChannelCacheFunction · 0.85

Tested by

no test coverage detected