From b9ea05a14a217fc8e030331949dc330cf9042800 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 28 Feb 2024 11:46:23 +0100 Subject: [PATCH] webrtc: janus: numerical room ids are u64 Part-of: --- net/webrtc/src/janusvr_signaller/imp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/webrtc/src/janusvr_signaller/imp.rs b/net/webrtc/src/janusvr_signaller/imp.rs index 580a778e..c60c6956 100644 --- a/net/webrtc/src/janusvr_signaller/imp.rs +++ b/net/webrtc/src/janusvr_signaller/imp.rs @@ -46,7 +46,7 @@ fn feed_id() -> u32 { #[serde(untagged)] enum RoomId { Str(String), - Num(u32), + Num(u64), } #[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] @@ -551,7 +551,7 @@ impl Signaller { state.feed_id = Some(RoomId::Str(settings.feed_id.clone())); } else { let room_id_str = settings.room_id.as_ref().unwrap(); - match room_id_str.parse::() { + match room_id_str.parse() { Ok(n) => { state.room_id = Some(RoomId::Num(n)); state.feed_id = Some(RoomId::Num(settings.feed_id.parse().unwrap()));