Skip to content

Commit ff950f9

Browse files
committed
cargo fmt
1 parent 4ff9472 commit ff950f9

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

moq-relay-ietf/src/producer.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ impl Producer {
8080
// Check local tracks first, and serve from local if possible
8181
if let Some(mut local) = self.locals.route(&subscribed.track_namespace) {
8282
// Pass the full requested namespace, not the announced prefix
83-
if let Some(track) = local.subscribe(
84-
subscribed.track_namespace.clone(),
85-
&subscribed.track_name,
86-
) {
83+
if let Some(track) =
84+
local.subscribe(subscribed.track_namespace.clone(), &subscribed.track_name)
85+
{
8786
log::info!("serving subscribe from local: {:?}", track.info);
8887
return Ok(subscribed.serve(track).await?);
8988
}

moq-transport/src/serve/tracks.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ impl TracksWriter {
8484
}
8585

8686
/// Remove a track from the broadcast by full name.
87-
pub fn remove(
88-
&mut self,
89-
namespace: &TrackNamespace,
90-
track_name: &str,
91-
) -> Option<TrackReader> {
87+
pub fn remove(&mut self, namespace: &TrackNamespace, track_name: &str) -> Option<TrackReader> {
9288
let full_name = FullTrackName {
9389
namespace: namespace.clone(),
9490
name: track_name.to_owned(),

0 commit comments

Comments
 (0)