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

Clean up stream logic #754

Merged
merged 6 commits into from
Aug 9, 2024
Merged

Clean up stream logic #754

merged 6 commits into from
Aug 9, 2024

Conversation

frostbyte73
Copy link
Member

No description provided.

@frostbyte73 frostbyte73 requested a review from a team as a code owner August 8, 2024 21:15
}
}

if sendUpdate {
c.Info.UpdatedAt = time.Now().UnixNano()
_, _ = c.ipcServiceClient.HandlerUpdate(ctx, (*livekit.EgressInfo)(c.Info))
c.streamUpdates(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

All updated will be delayed by at least 500ms. Could this cause temporary odd state mismatches when accessing the stream state after updating the egress?

Copy link
Member Author

Choose a reason for hiding this comment

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

it should grab the info and update time at the time it's executed, so even if that state isn't the same as when this was queued up it should always be accurate/up to date

@frostbyte73 frostbyte73 merged commit 8602b26 into main Aug 9, 2024
8 checks passed
@frostbyte73 frostbyte73 deleted the stream-cleaning branch August 9, 2024 18:12
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