mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
services/sending: guard against federation requests to ourselves
These would always fail and get stuck/retried forever.
This commit is contained in:
parent
bb80f1cf2e
commit
ed12b0bf67
1 changed files with 5 additions and 0 deletions
|
|
@ -869,6 +869,11 @@ async fn handle_federation_event(
|
|||
let mut edu_jsons = Vec::new();
|
||||
let mut pdu_jsons = Vec::new();
|
||||
|
||||
if server == services().globals.server_name() {
|
||||
warn!("Dropping outbound federation request to ourselves");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
for event in &events {
|
||||
match event {
|
||||
SendingEventType::Pdu(pdu_id) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue