Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
wakeful-kitten committed Aug 11, 2023
1 parent a343981 commit d59d941
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/app/stage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,11 @@ pub async fn route_message(
let event_id = headers.event_id();

let r: Result<(), HandleMessageFailure<Error>> = match event {
Event::V1(ev)
if matches!(
ev,
EventV1::VideoGroupCreateIntent(_)
| EventV1::VideoGroupDeleteIntent(_)
| EventV1::VideoGroupUpdateIntent(_)
) =>
{
Event::V1(
ev @ EventV1::VideoGroupCreateIntent(_)
| ev @ EventV1::VideoGroupDeleteIntent(_)
| ev @ EventV1::VideoGroupUpdateIntent(_),
) => {
let (backend_id, new_event) = match ev {
EventV1::VideoGroupCreateIntent(e) => (
e.backend_id,
Expand Down

0 comments on commit d59d941

Please sign in to comment.