Skip to content

Commit

Permalink
code fmt;
Browse files Browse the repository at this point in the history
  • Loading branch information
zesun96 committed Nov 18, 2024
1 parent b8db6c1 commit 21d8336
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions livekit-ffi/src/server/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn on_enable_remote_track_publication(
let TrackPublication::Remote(publication) = &ffi_publication.publication else {
return Err(FfiError::InvalidRequest("publication is not a RemotePublication".into()));
};

publication.set_enabled(request.enabled);
Ok(proto::EnableRemoteTrackPublicationResponse {})
}
Expand Down Expand Up @@ -1026,10 +1026,14 @@ pub fn handle_request(
)
}
proto::ffi_request::Message::EnableRemoteTrackPublication(request) => {
proto::ffi_response::Message::EnableRemoteTrackPublication(on_enable_remote_track_publication(server, request)?)
proto::ffi_response::Message::EnableRemoteTrackPublication(
on_enable_remote_track_publication(server, request)?,
)
}
proto::ffi_request::Message::UpdateRemoteTrackPublicationDimension(request) => {
proto::ffi_response::Message::UpdateRemoteTrackPublicationDimension(on_update_remote_track_publication_dimension(server, request)?)
proto::ffi_response::Message::UpdateRemoteTrackPublicationDimension(
on_update_remote_track_publication_dimension(server, request)?,
)
}
});

Expand Down

0 comments on commit 21d8336

Please sign in to comment.