未验证 提交 8ede9c70 编写于 作者: E edward.zeng 提交者: GitHub

[skip e2e] Refine datacoord util comment (#13883)

Signed-off-by: NEdward Zeng <jie.zeng@zilliz.com>
上级 73773a84
......@@ -78,7 +78,7 @@ type LongTermChecker struct {
name string
}
// NewLongTermChecker create a long term checker specified name, checking interval and warning string to print
// NewLongTermChecker creates a long term checker specified name, checking interval and warning string to print
func NewLongTermChecker(ctx context.Context, name string, d time.Duration, warn string) *LongTermChecker {
c := &LongTermChecker{
name: name,
......@@ -105,12 +105,12 @@ func (c *LongTermChecker) Start() {
}()
}
// Check reset the time ticker
// Check resets the time ticker
func (c *LongTermChecker) Check() {
c.t.Reset(c.d)
}
// Stop stop the checker
// Stop stops the checker
func (c *LongTermChecker) Stop() {
c.t.Stop()
close(c.ch)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册