mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 13:23:22 -06:00
fedsender: return early if we have no destinations
This commit is contained in:
parent
21bd27d003
commit
625d5e7cc7
|
|
@ -107,6 +107,9 @@ func (oqs *OutgoingQueues) SendEvent(
|
|||
|
||||
// Remove our own server from the list of destinations.
|
||||
destinations = filterAndDedupeDests(oqs.origin, destinations)
|
||||
if len(destinations) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
log.WithFields(log.Fields{
|
||||
"destinations": destinations, "event": ev.EventID(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue