MCPcopy
hub / github.com/songquanpeng/one-api / AutomaticallyTestChannels

Function AutomaticallyTestChannels

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

Source from the content-addressed store, hash-verified

245}
246
247func AutomaticallyTestChannels(frequency int) {
248 for {
249 time.Sleep(time.Duration(frequency) * time.Minute)
250 logger.SysLog("testing all channels")
251 _ = testChannels(false, "all")
252 logger.SysLog("channel test finished")
253 }
254}

Callers 1

mainFunction · 0.92

Calls 2

SysLogFunction · 0.92
testChannelsFunction · 0.70

Tested by

no test coverage detected