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

Combine Heartbeats #575

Merged
merged 5 commits into from
Aug 16, 2024
Merged

Combine Heartbeats #575

merged 5 commits into from
Aug 16, 2024

Conversation

0xcadams
Copy link
Contributor

Description

Updated all dependencies and changed to have a single heartbeat event when multiple heartbeats are attempted to be sent.

@0xcadams 0xcadams requested a review from a team as a code owner August 15, 2024 21:27
Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
coinbase-lvpr-tv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 9:50pm
lvpr-tv ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 9:50pm
ui-kit-docs-embed ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 9:50pm
ui-kit-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 9:50pm
ui-kit-next-pages ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 9:50pm
ui-kit-with-pubnub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 9:50pm

const mergedEvent: HeartbeatEvent = {
...existingEvent,
id: existingEvent.id,
timestamp: Math.max(existingEvent.timestamp, newEvent.timestamp),
Copy link
Member

Choose a reason for hiding this comment

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

we talked about having another timestamp field to capture the original heartbeat. I like the idea of having timestamp as the latest one. just need one that is set on the original event.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be shipped in the next release. Thanks for the reminder

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.

2 participants