mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-20 12:33:09 -06:00
Fix panic in database GetAsyncTransaction
This commit is contained in:
parent
fea8b5787a
commit
5d45b5baad
|
|
@ -384,7 +384,11 @@ func (d *Database) GetAsyncTransaction(
|
||||||
return nil, nil, nil
|
return nil, nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
txns, err := d.FederationTransactionJSON.SelectTransactionJSON(ctx, nil, nids)
|
txns := map[int64][]byte{}
|
||||||
|
err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
||||||
|
txns, err = d.FederationTransactionJSON.SelectTransactionJSON(ctx, txn, nids)
|
||||||
|
return err
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, fmt.Errorf("d.SelectTransactionJSON: %w", err)
|
return nil, nil, fmt.Errorf("d.SelectTransactionJSON: %w", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue