From 29ddb10e8caea97e52ccf815a48f1f1aead72157 Mon Sep 17 00:00:00 2001 From: CharlesFeng Date: Tue, 10 Sep 2024 15:23:06 +0800 Subject: [PATCH] enhance: timer instead of ticker (#36133) https://github.com/milvus-io/milvus/issues/36132 Signed-off-by: fengjun2016 --- internal/proxy/connection/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/proxy/connection/manager.go b/internal/proxy/connection/manager.go index 500ec9aa16a57..2707256f6f7ef 100644 --- a/internal/proxy/connection/manager.go +++ b/internal/proxy/connection/manager.go @@ -42,7 +42,7 @@ func (s *connectionManager) Stop() { func (s *connectionManager) checkLoop() { defer s.wg.Done() - t := time.NewTicker(paramtable.Get().ProxyCfg.ConnectionCheckIntervalSeconds.GetAsDuration(time.Second)) + t := time.NewTimer(paramtable.Get().ProxyCfg.ConnectionCheckIntervalSeconds.GetAsDuration(time.Second)) defer t.Stop() for {