fix: Helps when you refer to variables that exist
This commit is contained in:
parent
dbe024f645
commit
0f5ffd8676
1 changed files with 11 additions and 5 deletions
|
|
@ -220,7 +220,6 @@ impl Service {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debug!("Sending request to push gateway {dest}: {request:?}");
|
|
||||||
let response = self
|
let response = self
|
||||||
.services
|
.services
|
||||||
.client
|
.client
|
||||||
|
|
@ -499,18 +498,25 @@ impl Service {
|
||||||
}
|
}
|
||||||
debug_info!(
|
debug_info!(
|
||||||
%url,
|
%url,
|
||||||
?device,
|
|
||||||
?notify,
|
?notify,
|
||||||
?event,
|
?event,
|
||||||
"Sending notification to push gateway for {event_id} in {room_id}",
|
"Sending notification to push gateway for {} in {}",
|
||||||
|
event.event_id(),
|
||||||
|
event.room_id_or_hash(),
|
||||||
);
|
);
|
||||||
self.send_request(&http.url, send_event_notification::v1::Request::new(notify))
|
self.send_request(&http.url, send_event_notification::v1::Request::new(notify))
|
||||||
.await
|
.await
|
||||||
.inspect(|_| {
|
.inspect(|_| {
|
||||||
debug_info!("Successfully sent push notification for {event_id}")
|
debug_info!(
|
||||||
|
"Successfully sent push notification for {}",
|
||||||
|
event.event_id()
|
||||||
|
)
|
||||||
})
|
})
|
||||||
.inspect_err(|e| {
|
.inspect_err(|e| {
|
||||||
debug_warn!("Failed to send push notification for {event_id}: {e}")
|
debug_warn!(
|
||||||
|
"Failed to send push notification for {}: {e}",
|
||||||
|
event.event_id()
|
||||||
|
)
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue