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 af5910e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</h1>
<p align="center">
<a href="https://github.com/webrtc-rs/sfu/actions">
<img src="https://github.com/webrtc-rs/sfu/workflows/cargo/badge.svg?branch=master">
<img src="https://github.com/webrtc-rs/sfu/workflows/cargo/badge.svg">
</a>
<a href="https://codecov.io/gh/webrtc-rs/sfu">
<img src="https://codecov.io/gh/webrtc-rs/sfu/branch/master/graph/badge.svg">
Expand Down
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 af5910e

Please sign in to comment.