Fix some whitespace

This commit is contained in:
Mark Haines 2017-02-21 13:51:37 +00:00
parent f70d0d4819
commit bab6ee4a9f
2 changed files with 8 additions and 8 deletions

View file

@ -11,13 +11,13 @@ const previousEventSchema = `
-- This is used to tell if a new event is already referenced by an event in -- This is used to tell if a new event is already referenced by an event in
-- the database. -- the database.
CREATE TABLE IF NOT EXISTS previous_events ( CREATE TABLE IF NOT EXISTS previous_events (
-- The string event ID taken from the prev_events key of an event. -- The string event ID taken from the prev_events key of an event.
previous_event_id TEXT NOT NULL, previous_event_id TEXT NOT NULL,
-- The SHA256 reference hash taken from the prev_events key of an event. -- The SHA256 reference hash taken from the prev_events key of an event.
previous_reference_sha256 BYTEA NOT NULL, previous_reference_sha256 BYTEA NOT NULL,
-- A list of numeric event IDs of events that reference this prev_event. -- A list of numeric event IDs of events that reference this prev_event.
event_nids BIGINT[] NOT NULL, event_nids BIGINT[] NOT NULL,
CONSTRAINT previous_event_id_unique UNIQUE (previous_event_id, previous_reference_sha256) CONSTRAINT previous_event_id_unique UNIQUE (previous_event_id, previous_reference_sha256)
); );
` `

View file

@ -138,7 +138,7 @@ type RoomRecentEventsUpdater interface {
// Check whether the eventReference is already referenced by another matrix event. // Check whether the eventReference is already referenced by another matrix event.
IsReferenced(eventReference gomatrixserverlib.EventReference) (bool, error) IsReferenced(eventReference gomatrixserverlib.EventReference) (bool, error)
// Set the list of latest events for the room. // Set the list of latest events for the room.
// This replaces the current list stored in the database with the given list. // This replaces the current list stored in the database with the given list
SetLatestEvents(roomNID RoomNID, latest []StateAtEventAndReference) error SetLatestEvents(roomNID RoomNID, latest []StateAtEventAndReference) error
// Commit the transaction // Commit the transaction
Commit() error Commit() error