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

chore: centralize default ttl and milliseconds conversion #1476

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

malandis
Copy link
Contributor

@malandis malandis commented Dec 6, 2024

Previously the code had lots of ad hoc conversion:

  • deciding to use the provided ttl vs default
  • converting to milliseconds by multiplying by 1000

We centralize these calculations for maintainability and to reduce
errors.

closes #1255

Previously the code had lots of ad hoc conversion:
- deciding to use the provided ttl vs default
- converting to milliseconds by multiplying by 1000

We centralize these calculations for maintainability and to reduce
errors.
@malandis malandis requested a review from a team December 6, 2024 23:31
@malandis malandis merged commit 6b35bde into main Dec 9, 2024
13 checks passed
@malandis malandis deleted the chore/seconds-to-millis-helper branch December 9, 2024 22:55
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.

extract adhoc arithmetic to helpers (eg seconds to milliseconds)
3 participants