From 3ecfb1f1eb2f323623613bd326fd3689872acbbe Mon Sep 17 00:00:00 2001 From: Lemoe Date: Thu, 11 Nov 2021 14:09:42 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=8F=8D=E5=90=91=E4=BB=A3?= =?UTF-8?q?=E7=90=86=20gRPC=20=E7=AB=AF=E5=8F=A3=EF=BC=88=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20Cloudflare=20CDN=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/dashboard/rpc/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dashboard/rpc/rpc.go b/cmd/dashboard/rpc/rpc.go index 9dcb9f0..03dfaab 100644 --- a/cmd/dashboard/rpc/rpc.go +++ b/cmd/dashboard/rpc/rpc.go @@ -63,7 +63,7 @@ func DispatchKeepalive() { dao.SortedServerLock.RLock() defer dao.SortedServerLock.RUnlock() for i := 0; i < len(dao.SortedServerList); i++ { - if dao.SortedServerList[i] == nil || dao.SortedServerList[i].TaskStream == nil || dao.SortedServerList[i].TaskStream.Context().Err() != nil { + if dao.SortedServerList[i] == nil || dao.SortedServerList[i].TaskStream == nil { continue }