From 60d7f7f18452688ddb2ae30735d28e4995465ea4 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Thu, 13 Dec 2018 09:27:55 +0000 Subject: [PATCH] Fix comment for selectEvents --- .../dendrite/syncapi/storage/output_room_events_table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/syncapi/storage/output_room_events_table.go b/src/github.com/matrix-org/dendrite/syncapi/storage/output_room_events_table.go index 54da893e..f3252904 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/storage/output_room_events_table.go +++ b/src/github.com/matrix-org/dendrite/syncapi/storage/output_room_events_table.go @@ -301,8 +301,8 @@ func (s *outputRoomEventsStatements) selectEarlyEvents( return events, nil } -// Events returns the events for the given event IDs. Returns an error if any one of the event IDs given are missing -// from the database. +// selectEvents returns the events for the given event IDs. If an event is +// missing from the database, it will be omitted. func (s *outputRoomEventsStatements) selectEvents( ctx context.Context, txn *sql.Tx, eventIDs []string, ) ([]StreamEvent, error) {