From 151967a0e148414022b9f00f13694f5e3e4f1060 Mon Sep 17 00:00:00 2001 From: santong <244372610@qq.com> Date: Thu, 19 Aug 2021 19:33:41 +0800 Subject: [PATCH] feat: set default cdn loadLimit Signed-off-by: santong <244372610@qq.com> --- scheduler/supervisor/peer/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/supervisor/peer/manager.go b/scheduler/supervisor/peer/manager.go index b7bed4c7f26..13bfb67e72b 100644 --- a/scheduler/supervisor/peer/manager.go +++ b/scheduler/supervisor/peer/manager.go @@ -148,7 +148,7 @@ func (m *manager) cleanupPeers() { if peer.IsLeave() || peer.IsFail() || elapse > m.peerTTL { logger.Debugf("delete peer %s because %s have passed since last access", peer.PeerID) m.Delete(key.(string)) - if !peer.Host.CDN && peer.Host.GetPeerTaskNum() == 0 { + if peer.Host.GetPeerTaskNum() == 0 { m.hostManager.Delete(peer.Host.UUID) } }