-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
use Last() implementation when calculating tournament deadlines #1084
Conversation
I added a test for an additional case I thought of but this is still good to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are also required to https://github.com/heroiclabs/nakama/blob/master/server/core_leaderboard.go#L728
Ready for re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Will still need a 👍 from @sesposito if it deserves it to unblock the merge |
Ports gorhill/cronexpr#28 to our internal version of
cronexpr
. This gives us theLast()
method which allows us to infer the start time directly from the cronexpr rather than estimating it by invokingNext()
twice.