mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Add comments around asynchronous sends to roomserver in processEventWithMissingState
This commit is contained in:
parent
1099a1cc0c
commit
91e7a82e61
1 changed files with 4 additions and 0 deletions
|
@ -884,6 +884,8 @@ func (t *txnReq) processEventWithMissingState(
|
||||||
resolvedState,
|
resolvedState,
|
||||||
backwardsExtremity.Headered(roomVersion),
|
backwardsExtremity.Headered(roomVersion),
|
||||||
hadEvents,
|
hadEvents,
|
||||||
|
// Send the events to the roomserver asynchronously, so they will be
|
||||||
|
// processed when the roomserver is able, without blocking here.
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -905,6 +907,8 @@ func (t *txnReq) processEventWithMissingState(
|
||||||
append(headeredNewEvents, e.Headered(roomVersion)),
|
append(headeredNewEvents, e.Headered(roomVersion)),
|
||||||
api.DoNotSendToOtherServers,
|
api.DoNotSendToOtherServers,
|
||||||
nil,
|
nil,
|
||||||
|
// Send the events to the roomserver asynchronously, so they will be
|
||||||
|
// processed when the roomserver is able, without blocking here.
|
||||||
true,
|
true,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return fmt.Errorf("api.SendEvents: %w", err)
|
return fmt.Errorf("api.SendEvents: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue