Fix joined hosts

This commit is contained in:
Neil Alexander 2022-08-22 13:15:56 +01:00
parent b452d774e4
commit 468d4b5bbe
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -18,7 +18,6 @@ package postgres
import (
"context"
"database/sql"
"fmt"
"github.com/lib/pq"
"github.com/matrix-org/dendrite/federationapi/types"
@ -222,5 +221,6 @@ func joinedHostsFromStmt(
func (s *joinedHostsStatements) PurgeJoinedHosts(
ctx context.Context, txn *sql.Tx, roomID string,
) error {
return fmt.Errorf("not implemented on SQLite")
_, err := sqlutil.TxStmt(txn, s.purgeJoinedHostsStmt).ExecContext(ctx, roomID)
return err
}