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

Function AutomaticallyTestChannels

controller/channel-test.go:454–465  ·  view source on GitHub ↗
(frequency int)

Source from the content-addressed store, hash-verified

452}
453
454func AutomaticallyTestChannels(frequency int) {
455 if frequency <= 0 {
456 common.SysLog("CHANNEL_TEST_FREQUENCY is not set or invalid, skipping automatic channel test")
457 return
458 }
459 for {
460 time.Sleep(time.Duration(frequency) * time.Minute)
461 common.SysLog("testing all channels")
462 _ = testAllChannels(false)
463 common.SysLog("channel test finished")
464 }
465}

Callers 1

mainFunction · 0.92

Calls 1

testAllChannelsFunction · 0.70

Tested by

no test coverage detected