Skip to content

Commit

Permalink
reference service
Browse files Browse the repository at this point in the history
  • Loading branch information
JadedBlueEyes committed Jan 3, 2025
1 parent bd52d4c commit 95c556d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/client/sync/v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub(crate) async fn sync_events_route(
// Setup watchers, so if there's no response, we can wait for them
let watcher = services.sync.watch(sender_user, sender_device);

let response = build_sync_events(services, &body).await?;
let response = build_sync_events(&services, &body).await?;
if body.body.full_state
|| !(response.rooms.is_empty()
&& response.presence.is_empty()
Expand All @@ -142,11 +142,11 @@ pub(crate) async fn sync_events_route(
_ = tokio::time::timeout(duration, watcher).await;

// Retry returning data
build_sync_events(services, &body).await
build_sync_events(&services, &body).await
}

pub(crate) async fn build_sync_events(
services: crate::State,
services: &Services,
body: &Ruma<sync_events::v3::Request>,
) -> Result<sync_events::v3::Response, RumaResponse<UiaaResponse>> {
let (sender_user, sender_device) = body.sender();
Expand Down

0 comments on commit 95c556d

Please sign in to comment.