Un-goroutine the goroutines

This commit is contained in:
Neil Alexander 2020-07-09 12:22:41 +01:00
parent 478374e5d1
commit aee933f878
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
2 changed files with 1 additions and 2 deletions

View File

@ -353,7 +353,6 @@ func (oq *destinationQueue) nextTransaction(
// If we didn't get anything from the database and there are no
// pending EDUs then there's nothing to do - stop here.
if len(pdus) == 0 && len(pendingEDUs) == 0 {
log.Warnf("Expected PDUs/EDUs for destination %q but got none", oq.destination)
return false, nil
}

View File

@ -136,7 +136,7 @@ func (oqs *OutgoingQueues) SendEvent(
}
for _, destination := range destinations {
go oqs.getQueue(destination).sendEvent(nid)
oqs.getQueue(destination).sendEvent(nid)
}
return nil