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

feat(server): Apply clock-drift correction in proxy Relays #581

Merged
merged 2 commits into from
May 18, 2020

Conversation

jan-auer
Copy link
Member

Exposes the ClockDriftProcessor and applies it in non-processing mode. This allows for proper clock drift correction even when using proxy Relays that are in remote locations.

This also contains a workaround for the current experimental JavaScript SDK (versions 5.2 - 5.15), which relies on clock drift correction without sent_at. In such a case, the sent_at value is inferred from the event's timestamp.

@jan-auer jan-auer requested review from HazAT and a team May 18, 2020 11:57
@jan-auer jan-auer self-assigned this May 18, 2020
@@ -12,7 +12,7 @@ publish = false
[dependencies]
backoff = "0.1.5"
cadence = "0.17.1"
chrono = { version = "0.4.7", optional = true }
chrono = "0.4.7"
Copy link
Member Author

Choose a reason for hiding this comment

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

Went with a static dependency after all, like @untitaker suggested.

relay-server/src/actors/events.rs Outdated Show resolved Hide resolved
@jan-auer jan-auer merged commit b41c188 into master May 18, 2020
@jan-auer jan-auer deleted the feat/clock-drift-external branch May 18, 2020 12:56
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.

3 participants