Fix comment for selectEvents

This commit is contained in:
Brendan Abolivier 2018-12-13 09:27:55 +00:00
parent ad5b16a17b
commit 60d7f7f184
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

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