mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-25 15:53:09 -06:00
Use processEvent
This commit is contained in:
parent
fe60adfc9e
commit
77b1e91333
|
|
@ -375,17 +375,8 @@ func (t *txnReq) processEvent(ctx context.Context, e gomatrixserverlib.Event, is
|
||||||
logrus.WithError(err).Warnf("Failed to unmarshal auth event %d", missingAuthEventID)
|
logrus.WithError(err).Warnf("Failed to unmarshal auth event %d", missingAuthEventID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
err = api.SendEvents(
|
if err = t.processEvent(ctx, ev, false); err != nil {
|
||||||
context.Background(),
|
logrus.WithError(err).Warnf("Failed to process auth event %d", missingAuthEventID)
|
||||||
t.rsAPI,
|
|
||||||
[]gomatrixserverlib.HeaderedEvent{
|
|
||||||
ev.Headered(stateResp.RoomVersion),
|
|
||||||
},
|
|
||||||
api.DoNotSendToOtherServers,
|
|
||||||
nil,
|
|
||||||
)
|
|
||||||
if err != nil {
|
|
||||||
logrus.WithError(err).Warnf("Failed to submit auth event %d to roomserver", missingAuthEventID)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue