Skip to content

Commit

Permalink
feat:avoid unnecessary task start, issue: TencentBlueKing#308
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Oct 23, 2024
1 parent ffac0aa commit 385ba21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/booster/bk_dist/controller/pkg/types/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
}
}
}
Expand Down

0 comments on commit 385ba21

Please sign in to comment.