Use processEvent

This commit is contained in:
Neil Alexander 2020-09-28 15:38:10 +01:00
parent fe60adfc9e
commit 77b1e91333
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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)
} }
} }
} }