From 385ba2100ef1e53683df0346907a2f21771532cf Mon Sep 17 00:00:00 2001 From: tbs60 Date: Wed, 23 Oct 2024 10:25:08 +0800 Subject: [PATCH] feat:avoid unnecessary task start, issue: #308 --- src/backend/booster/bk_dist/controller/pkg/types/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/booster/bk_dist/controller/pkg/types/manager.go b/src/backend/booster/bk_dist/controller/pkg/types/manager.go index 5e21c7c0..e264a5f7 100644 --- a/src/backend/booster/bk_dist/controller/pkg/types/manager.go +++ b/src/backend/booster/bk_dist/controller/pkg/types/manager.go @@ -294,7 +294,7 @@ func (c *HttpConnCache) OnConnStatusError(key string) { } func (c *HttpConnCache) Check() { - blog.Infof("types: httpconncache: start go routine to check http conn status") + // blog.Infof("types: httpconncache: start go routine to check http conn status") ticker := time.NewTicker(5 * time.Second) defer ticker.Stop() @@ -308,7 +308,7 @@ func (c *HttpConnCache) Check() { old := v.ErrorStartTime.Add(time.Duration(v.delayCleanSecs) * time.Second) if old.Before(time.Now()) { delete(c.cache, k) - blog.Infof("types: httpconncache: deleted %s from cache after wait", k) + // blog.Infof("types: httpconncache: deleted %s from cache after wait", k) } } }