Skip to content

refactor(internal/statesync): replace ticker with time.After(X) (backport #2294)#2310

Merged
melekes merged 1 commit intov1.xfrom
mergify/bp/v1.x/pr-2294
Feb 12, 2024
Merged

refactor(internal/statesync): replace ticker with time.After(X) (backport #2294)#2310
melekes merged 1 commit intov1.xfrom
mergify/bp/v1.x/pr-2294

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Feb 12, 2024

This is an automatic backport of pull request #2294 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

)

- Remove `defer` from `ticker.Stop()` inside the loop.
- Manually call `ticker.Stop()` at necessary points in the loop to
ensure tickers are stopped correctly after each iteration.

---------

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
(cherry picked from commit 0820cd5)
@mergify mergify bot requested a review from a team as a code owner February 12, 2024 10:08
@mergify mergify bot requested a review from a team February 12, 2024 10:08
@melekes melekes merged commit 156d253 into v1.x Feb 12, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-2294 branch February 12, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants