Skip to content

Commit

Permalink
Add comment, remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Aug 13, 2021
1 parent e4c0613 commit d9c22d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beater/waitintegration.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func waitForIntegration(
var ticker *time.Ticker
for {
if ticker == nil {
// We start the ticker on the first iteration, rather than
// before the loop, so we don't have to wait for a tick
// (5 seconds by default) before peforming the first check.
ticker = time.NewTicker(interval)
defer ticker.Stop()
} else {
Expand All @@ -63,7 +66,6 @@ func waitForIntegration(
}
}
if kibanaClient != nil {
//logger.Errorf("error querying integration package status: %s", err)
installed, err := checkIntegrationInstalledKibana(ctx, kibanaClient, logger)
if err != nil {
logger.Errorf("error querying Kibana for integration package status: %s", err)
Expand Down

0 comments on commit d9c22d4

Please sign in to comment.