diff --git a/roomserver/storage/postgres/registration_tokens_table.go b/roomserver/storage/postgres/registration_tokens_table.go index 1f69f42d8..8fd0e41f9 100644 --- a/roomserver/storage/postgres/registration_tokens_table.go +++ b/roomserver/storage/postgres/registration_tokens_table.go @@ -3,7 +3,6 @@ package postgres import ( "context" "database/sql" - "fmt" ) const registrationTokensSchema = ` @@ -22,6 +21,5 @@ func CreateRegistrationTokensTable(db *sql.DB) error { } func RegistrationTokenExists(ctx context.Context, tx *sql.Tx, token string) (bool, error) { - fmt.Println("here!!") return true, nil } diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index 3e316b882..0a8a358ef 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -31,31 +31,31 @@ const redactionsArePermanent = true type Database struct { DB *sql.DB EventDatabase - Cache caching.RoomServerCaches - Writer sqlutil.Writer - RoomsTable tables.Rooms - StateSnapshotTable tables.StateSnapshot - StateBlockTable tables.StateBlock - RoomAliasesTable tables.RoomAliases - InvitesTable tables.Invites - MembershipTable tables.Membership - PublishedTable tables.Published - Purge tables.Purge - GetRoomUpdaterFn func(ctx context.Context, roomInfo *types.RoomInfo) (*RoomUpdater, error) + Cache caching.RoomServerCaches + Writer sqlutil.Writer + RoomsTable tables.Rooms + StateSnapshotTable tables.StateSnapshot + StateBlockTable tables.StateBlock + RoomAliasesTable tables.RoomAliases + InvitesTable tables.Invites + MembershipTable tables.Membership + PublishedTable tables.Published + Purge tables.Purge + GetRoomUpdaterFn func(ctx context.Context, roomInfo *types.RoomInfo) (*RoomUpdater, error) + RegistrationTokensTable tables.RegistrationTokens } // EventDatabase contains all tables needed to work with events type EventDatabase struct { - DB *sql.DB - Cache caching.RoomServerCaches - Writer sqlutil.Writer - EventsTable tables.Events - EventJSONTable tables.EventJSON - EventTypesTable tables.EventTypes - EventStateKeysTable tables.EventStateKeys - PrevEventsTable tables.PreviousEvents - RedactionsTable tables.Redactions - RegistrationTokensTable tables.RegistrationTokens + DB *sql.DB + Cache caching.RoomServerCaches + Writer sqlutil.Writer + EventsTable tables.Events + EventJSONTable tables.EventJSON + EventTypesTable tables.EventTypes + EventStateKeysTable tables.EventStateKeys + PrevEventsTable tables.PreviousEvents + RedactionsTable tables.Redactions } func (d *Database) RegistrationTokenExists(ctx context.Context, token string) (bool, error) {