Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(blocksync): use timer instead of time.After #19

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

czarcas7ic
Copy link
Member

time.After gets reset after each iteration of the for loop, which is not what we want. We want the timer to fire after 30 sec if both peers (first and second) don't respond.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

`time.After` gets reset after each iteration of the `for` loop, which is
not what we want. We want the timer to fire after 30 sec if both peers
(first and second) don't respond.
@czarcas7ic czarcas7ic added the S:backport/v23 backport to the osmo-v23/v0.37.4 branch label Mar 12, 2024
@czarcas7ic czarcas7ic merged commit 168ab18 into osmo/v0.37.4 Mar 12, 2024
15 checks passed
czarcas7ic added a commit that referenced this pull request Mar 12, 2024
fix(blocksync): use timer instead of time.After
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:backport/v23 backport to the osmo-v23/v0.37.4 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants