From bab6ee4a9fd017f518eb0271ab1f09a8791f390e Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 21 Feb 2017 13:51:37 +0000 Subject: [PATCH] Fix some whitespace --- .../roomserver/storage/previous_events_table.go | 14 +++++++------- .../matrix-org/dendrite/roomserver/types/types.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/storage/previous_events_table.go b/src/github.com/matrix-org/dendrite/roomserver/storage/previous_events_table.go index 357245555..fe4601f00 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/storage/previous_events_table.go +++ b/src/github.com/matrix-org/dendrite/roomserver/storage/previous_events_table.go @@ -11,13 +11,13 @@ const previousEventSchema = ` -- This is used to tell if a new event is already referenced by an event in -- the database. CREATE TABLE IF NOT EXISTS previous_events ( - -- The string event ID taken from the prev_events key of an event. - previous_event_id TEXT NOT NULL, - -- The SHA256 reference hash taken from the prev_events key of an event. - previous_reference_sha256 BYTEA NOT NULL, - -- A list of numeric event IDs of events that reference this prev_event. - event_nids BIGINT[] NOT NULL, - CONSTRAINT previous_event_id_unique UNIQUE (previous_event_id, previous_reference_sha256) + -- The string event ID taken from the prev_events key of an event. + previous_event_id TEXT NOT NULL, + -- The SHA256 reference hash taken from the prev_events key of an event. + previous_reference_sha256 BYTEA NOT NULL, + -- A list of numeric event IDs of events that reference this prev_event. + event_nids BIGINT[] NOT NULL, + CONSTRAINT previous_event_id_unique UNIQUE (previous_event_id, previous_reference_sha256) ); ` diff --git a/src/github.com/matrix-org/dendrite/roomserver/types/types.go b/src/github.com/matrix-org/dendrite/roomserver/types/types.go index 9187a21c7..836428c95 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/types/types.go +++ b/src/github.com/matrix-org/dendrite/roomserver/types/types.go @@ -138,7 +138,7 @@ type RoomRecentEventsUpdater interface { // Check whether the eventReference is already referenced by another matrix event. IsReferenced(eventReference gomatrixserverlib.EventReference) (bool, error) // 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 // Commit the transaction Commit() error