|
|
@@ -617,6 +617,10 @@ func TestAllChannels(c *gin.Context) {
|
|
|
var autoTestChannelsOnce sync.Once
|
|
|
|
|
|
func AutomaticallyTestChannels() {
|
|
|
+ // 只在Master节点定时测试渠道
|
|
|
+ if !common.IsMasterNode {
|
|
|
+ return
|
|
|
+ }
|
|
|
autoTestChannelsOnce.Do(func() {
|
|
|
for {
|
|
|
if !operation_setting.GetMonitorSetting().AutoTestChannelEnabled {
|