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: backend sends gracePeriod in seconds instead of ms #16132

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

aweiss-dev
Copy link
Member

This PR fixes a bug with the E2EI GracePeriod. The backend sends the GracePeriod in Seconds, I did initially think it would be MS, they get converted now.

// ToDo: Do these values need to te able to be updated? Should we use a singleton with update fn?
this.discoveryUrl = discoveryUrl;
this.gracePeriodInMS = gracePeriodInMS;
this.gracePeriodInMS = gracePeriodInSeconds * 1000;
Copy link
Contributor

@arjita-mitra arjita-mitra Oct 31, 2023

Choose a reason for hiding this comment

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

suggestion: good to use 1000 as const

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a util for that. Look for TIME_IN_MILLIS.SECOND ;)

@aweiss-dev aweiss-dev changed the title fix: backend sends time in seconds instead of MS fix: backend sends gracePeriod in seconds instead of ms Oct 31, 2023
@aweiss-dev aweiss-dev merged commit 08a58a3 into dev Oct 31, 2023
@aweiss-dev aweiss-dev deleted the fix/e2ei_delayTimer branch October 31, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants