Skip to content

Commit

Permalink
enhance: timer instead of ticker (milvus-io#36133)
Browse files Browse the repository at this point in the history
milvus-io#36132

Signed-off-by: fengjun2016 <[email protected]>
  • Loading branch information
fengjun2016 authored Sep 10, 2024
1 parent 9d10f37 commit 29ddb10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/proxy/connection/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 29ddb10

Please sign in to comment.