mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-22 05:23:09 -06:00
Merge branch 'main' into s7evink/helm
This commit is contained in:
commit
7f8c8931da
|
|
@ -232,7 +232,7 @@ func (s *OutputRoomEventConsumer) processMessage(ore api.OutputNewRoomEvent, rew
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *OutputRoomEventConsumer) sendPresence(roomID string, addedJoined []types.JoinedHost) {
|
func (s *OutputRoomEventConsumer) sendPresence(roomID string, addedJoined []types.JoinedHost) {
|
||||||
joined := make([]gomatrixserverlib.ServerName, len(addedJoined))
|
joined := make([]gomatrixserverlib.ServerName, 0, len(addedJoined))
|
||||||
for _, added := range addedJoined {
|
for _, added := range addedJoined {
|
||||||
joined = append(joined, added.ServerName)
|
joined = append(joined, added.ServerName)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,13 +57,6 @@ type Database struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Database) NewDatabaseSnapshot(ctx context.Context) (*DatabaseTransaction, error) {
|
func (d *Database) NewDatabaseSnapshot(ctx context.Context) (*DatabaseTransaction, error) {
|
||||||
return d.NewDatabaseTransaction(ctx)
|
|
||||||
|
|
||||||
/*
|
|
||||||
TODO: Repeatable read is probably the right thing to do here,
|
|
||||||
but it seems to cause some problems with the invite tests, so
|
|
||||||
need to investigate that further.
|
|
||||||
|
|
||||||
txn, err := d.DB.BeginTx(ctx, &sql.TxOptions{
|
txn, err := d.DB.BeginTx(ctx, &sql.TxOptions{
|
||||||
// Set the isolation level so that we see a snapshot of the database.
|
// Set the isolation level so that we see a snapshot of the database.
|
||||||
// In PostgreSQL repeatable read transactions will see a snapshot taken
|
// In PostgreSQL repeatable read transactions will see a snapshot taken
|
||||||
|
|
@ -81,7 +74,6 @@ func (d *Database) NewDatabaseSnapshot(ctx context.Context) (*DatabaseTransactio
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
txn: txn,
|
txn: txn,
|
||||||
}, nil
|
}, nil
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Database) NewDatabaseTransaction(ctx context.Context) (*DatabaseTransaction, error) {
|
func (d *Database) NewDatabaseTransaction(ctx context.Context) (*DatabaseTransaction, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue