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

Function CacheUpdateChannelStatus

model/channel_cache.go:365–374  ·  view source on GitHub ↗
(id int, status int)

Source from the content-addressed store, hash-verified

363}
364
365func CacheUpdateChannelStatus(id int, status int) {
366 if !common.MemoryCacheEnabled {
367 return
368 }
369 channelSyncLock.Lock()
370 defer channelSyncLock.Unlock()
371 if channel, ok := channelsIDM[id]; ok {
372 channel.Status = status
373 }
374}
375
376func CacheUpdateChannel(channel *Channel) {
377 if !common.MemoryCacheEnabled {

Callers 1

UpdateChannelStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected