(frequency int)
| 73 | } |
| 74 | |
| 75 | func 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 | |
| 83 | func CacheGetRandomSatisfiedChannel(c *gin.Context, group string, model string, retry int) (*Channel, string, error) { |
| 84 | var channel *Channel |
no test coverage detected