mirror of https://github.com/milvus-io/milvus.git
enhance: timer instead of ticker (#36133)
https://github.com/milvus-io/milvus/issues/36132 Signed-off-by: fengjun2016 <jornfeng@gmail.com>pull/36151/head
parent
9d10f378e1
commit
29ddb10e8c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue