enhance: timer instead of ticker (#36133)

https://github.com/milvus-io/milvus/issues/36132

Signed-off-by: fengjun2016 <jornfeng@gmail.com>
pull/36151/head
CharlesFeng 2024-09-10 15:23:06 +08:00 committed by GitHub
parent 9d10f378e1
commit 29ddb10e8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func (s *connectionManager) Stop() {
func (s *connectionManager) checkLoop() { func (s *connectionManager) checkLoop() {
defer s.wg.Done() 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() defer t.Stop()
for { for {