From 3dc4d6c39e155b03875226619364d43af455fe31 Mon Sep 17 00:00:00 2001 From: CaIon Date: Thu, 6 Nov 2025 21:12:59 +0800 Subject: [PATCH] feat: restrict automatic channel testing to master node only --- controller/channel-test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/channel-test.go b/controller/channel-test.go index 9f6e479fd..171cca22b 100644 --- a/controller/channel-test.go +++ b/controller/channel-test.go @@ -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 {