From 78ab33f91f6368c40a036654f2d820299abbf66e Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 4 Aug 2020 11:41:48 +0100 Subject: [PATCH] Unbreak postgres --- federationsender/consumers/eduserver.go | 2 ++ federationsender/consumers/keychange.go | 2 ++ federationsender/storage/postgres/joined_hosts_table.go | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/federationsender/consumers/eduserver.go b/federationsender/consumers/eduserver.go index 161de8c6..7b539530 100644 --- a/federationsender/consumers/eduserver.go +++ b/federationsender/consumers/eduserver.go @@ -1,3 +1,5 @@ +// Copyright 2020 The Matrix.org Foundation C.I.C. +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/federationsender/consumers/keychange.go b/federationsender/consumers/keychange.go index 4c3d23b5..d33a6e07 100644 --- a/federationsender/consumers/keychange.go +++ b/federationsender/consumers/keychange.go @@ -1,3 +1,5 @@ +// Copyright 2020 The Matrix.org Foundation C.I.C. +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at diff --git a/federationsender/storage/postgres/joined_hosts_table.go b/federationsender/storage/postgres/joined_hosts_table.go index 52865996..cc112b7f 100644 --- a/federationsender/storage/postgres/joined_hosts_table.go +++ b/federationsender/storage/postgres/joined_hosts_table.go @@ -154,7 +154,7 @@ func (s *joinedHostsStatements) SelectAllJoinedHosts( func (s *joinedHostsStatements) SelectJoinedHostsForRooms( ctx context.Context, roomIDs []string, ) ([]gomatrixserverlib.ServerName, error) { - rows, err := s.selectJoinedHostsForRoomsStmt.QueryContext(ctx) + rows, err := s.selectJoinedHostsForRoomsStmt.QueryContext(ctx, pq.StringArray(roomIDs)) if err != nil { return nil, err }