Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: arthur yang <yang_yapo@126.com>
  • Loading branch information
00arthur00 committed Feb 21, 2020
1 parent 3ae2be2 commit fef63bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/thanos/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ func runRule(
{
cancel := make(chan struct{})
g.Add(func() error {
//initialize rules.
// Initialize rules.
if err := reloadRules(logger, ruleFiles, ruleMgr, evalInterval, configSuccess, configSuccessTime, rulesLoaded); err != nil {
level.Error(logger).Log("msg", "initialize rules failed", "err", err)
//returns when initialize with invalid pattern error.
// Return when initialize with invalid pattern error.
if _, ok := err.(*errInvalidPattern); ok {
return err
}
Expand Down Expand Up @@ -759,7 +759,7 @@ func reloadRules(logger log.Logger,
for _, pat := range ruleFiles {
fs, err := filepath.Glob(pat)
if err != nil {
//check errInvalidPattern when initialize.
// Check errInvalidPattern when initialize.
return &errInvalidPattern{err, pat}
}

Expand Down

0 comments on commit fef63bc

Please sign in to comment.