Skip to content

feat: Remove Real Time Channel #2304

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

Merged
merged 4 commits into from
Jan 29, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Serialize min fixed rate to real time
darunrs committed Jan 29, 2025
commit 55f86957150b0ac472732803c0ea4b693e6f87c0
3 changes: 3 additions & 0 deletions lazer/sdk/rust/protocol/src/router.rs
Original file line number Diff line number Diff line change
@@ -173,6 +173,9 @@ impl Serialize for Channel {
{
match self {
Channel::FixedRate(fixed_rate) => {
if *fixed_rate == FixedRate::MIN {
return serializer.serialize_str("real_time");
}
serializer.serialize_str(&format!("fixed_rate@{}ms", fixed_rate.value_ms()))
}
}