Skip to content

Commit

Permalink
add tailing period for comment
Browse files Browse the repository at this point in the history
Signed-off-by: yapo.yang <yang_yapo@126.com>
  • Loading branch information
00arthur00 committed Dec 10, 2019
1 parent b86eb81 commit d5b9294
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 @@ -425,10 +425,10 @@ func runRule(
g.Add(func() error {
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP)
//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
//returns when initialize with invalid pattern error.
if _, ok := err.(*errInvalidPattern); ok {
return err
}
Expand Down Expand Up @@ -783,7 +783,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 d5b9294

Please sign in to comment.