mirror of https://github.com/milvus-io/milvus.git
[skip e2e] Refine datacoord util comment (#13883)
Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>pull/13895/head
parent
73773a84ba
commit
8ede9c70b2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue