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

Pass Time::Span to sleep (to please upcoming deprecation) #784

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

spuun
Copy link
Member

@spuun spuun commented Sep 16, 2024

WHAT is this pull request doing?

sleep(Number) is deprecated in crystal 1.14, see crystal-lang/crystal#14962

This will make sure we pass Time::Span everywhere.

HOW can this pull request be tested?

Runs specs

Copy link
Member

@kickster97 kickster97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the threshold is low to change to milliseconds now that you already have a PR so i would vote for doing it right the first time, but still approve :)

@spuun spuun merged commit 851594d into main Sep 16, 2024
25 checks passed
@spuun spuun deleted the pass-timespan-to-sleep branch September 16, 2024 12:19
@viktorerlingsson
Copy link
Member

I'm too late, but saw some small inconsistencies. Fixed it here! 20c21d7

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.

4 participants