未验证 提交 5ac726b7 编写于 作者: C Cai Yudong 提交者: GitHub

use NewTicker instead of NewTimer (#5503)

Signed-off-by: Nyudong.cai <yudong.cai@zilliz.com>
上级 88b32316
......@@ -268,7 +268,7 @@ func (c *Core) startDdScheduler() {
func (c *Core) startTimeTickLoop() {
if SetDDTimeTimeByMaster {
ticker := time.NewTimer(time.Duration(Params.TimeTickInterval) * time.Millisecond)
ticker := time.NewTicker(time.Duration(Params.TimeTickInterval) * time.Millisecond)
cnt := 0
for {
select {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册