From 0c8a15cfee1e01cc3b4b4855749d6b828b1b9eaf Mon Sep 17 00:00:00 2001 From: xfy Date: Mon, 13 Apr 2026 16:41:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(lint):=20=E8=B0=83=E6=95=B4=20Target=20?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93=E5=AD=97=E6=AE=B5=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=86=85=E5=AD=98=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/loadbalance/balancer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/loadbalance/balancer.go b/internal/loadbalance/balancer.go index 9532677..17a9fd0 100644 --- a/internal/loadbalance/balancer.go +++ b/internal/loadbalance/balancer.go @@ -40,14 +40,14 @@ import ( // // 所有字段都设计为使用原子操作进行并发访问(如适用)。 type Target struct { - resolvedIPs atomic.Pointer[[]string] URL string hostname string - hostnameOnce sync.Once VirtualHashes []uint64 + resolvedIPs atomic.Pointer[[]string] Weight int Connections int64 lastResolved atomic.Int64 + hostnameOnce sync.Once Healthy atomic.Bool }