Skip to content

Commit

Permalink
Ensure that the pollSince is greater than Activation start time (#461)
Browse files Browse the repository at this point in the history
This ensures that poll command does not repeatedly keep on fetching the last activation
  • Loading branch information
chetanmeh authored Oct 17, 2019
1 parent ab412be commit d0f5736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/activation.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ var activationPollCmd = &cobra.Command{
reported[activation.ActivationID] = true
}
if activation.Start > pollSince {
pollSince = activation.Start
pollSince = activation.Start + 1
}
}
time.Sleep(time.Second * 2)
Expand Down

0 comments on commit d0f5736

Please sign in to comment.