Skip to content

Commit

Permalink
update rtc crate pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Jan 7, 2024
1 parent 3c6232b commit e21d8f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions examples/signal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use hyper::{Body, Method, Request, Response, Server, StatusCode};
use log::{debug, error, info};
use sfu::server::states::ServerStates;
use std::collections::HashMap;
use std::io::{Error, ErrorKind};
use std::net::SocketAddr;
use std::rc::Rc;
use std::sync::Arc;
Expand Down Expand Up @@ -339,7 +340,8 @@ pub fn handle_signaling_message(
endpoint_id,
})
.map_err(|_| {
shared::error::Error::Other(
Error::new(
ErrorKind::Other,
"failed to send back signaling message response".to_string(),
)
})?)
Expand Down Expand Up @@ -396,7 +398,8 @@ pub fn handle_signaling_message(
reason: Bytes::from("Invalid Request"),
})
.map_err(|_| {
shared::error::Error::Other(
Error::new(
ErrorKind::Other,
"failed to send back signaling message response".to_string(),
)
})?),
Expand Down Expand Up @@ -426,7 +429,8 @@ fn handle_offer_message(
answer_sdp,
})
.map_err(|_| {
shared::error::Error::Other(
Error::new(
ErrorKind::Other,
"failed to send back signaling message response".to_string(),
)
})?)
Expand All @@ -452,7 +456,8 @@ fn handle_answer_message(
endpoint_id,
})
.map_err(|_| {
shared::error::Error::Other(
Error::new(
ErrorKind::Other,
"failed to send back signaling message response".to_string(),
)
})?)
Expand All @@ -471,7 +476,8 @@ fn handle_leave_message(
endpoint_id,
})
.map_err(|_| {
shared::error::Error::Other(
Error::new(
ErrorKind::Other,
"failed to send back signaling message response".to_string(),
)
})?)
Expand Down
2 changes: 1 addition & 1 deletion rtc
Submodule rtc updated from c90320 to 63c4bc

0 comments on commit e21d8f2

Please sign in to comment.