mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-06 12:03:38 +00:00
Make it build
This commit is contained in:
parent
ed375d1d76
commit
1dcc896893
1 changed files with 5 additions and 2 deletions
|
@ -57,16 +57,19 @@ func (e *EventSender) Send(
|
||||||
func (e *EventSender) SendMany(
|
func (e *EventSender) SendMany(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
roomNID types.RoomNID,
|
roomNID types.RoomNID,
|
||||||
|
roomID string,
|
||||||
events []EventSenderValue,
|
events []EventSenderValue,
|
||||||
) (err error) {
|
) (err error) {
|
||||||
e.linearizer.Await(event.RoomID(), func() {
|
e.linearizer.Await(roomID, func() {
|
||||||
for i := range events {
|
for i := range events {
|
||||||
err = updateLatestEvents(ctx, e.db, e.outputWriter, roomNID, stateAtEvent, event, sendAsServer, transactionID)
|
err = updateLatestEvents(ctx, e.db, e.outputWriter, roomNID, events[i].stateAtEvent, events[i].event, events[i].sendAsServer, events[i].transactionID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateLatestEvents updates the list of latest events for this room in the database and writes the
|
// updateLatestEvents updates the list of latest events for this room in the database and writes the
|
||||||
|
|
Loading…
Reference in a new issue