mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Remove package name shadowing
This commit is contained in:
parent
e83940b5cf
commit
51d2e7f51e
|
|
@ -41,14 +41,14 @@ func (d *Database) StoreTransaction(
|
|||
transaction gomatrixserverlib.Transaction,
|
||||
) (*receipt.Receipt, error) {
|
||||
var err error
|
||||
json, err := json.Marshal(transaction)
|
||||
jsonTransaction, err := json.Marshal(transaction)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to marshal: %w", err)
|
||||
}
|
||||
|
||||
var nid int64
|
||||
_ = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
||||
nid, err = d.RelayQueueJSON.InsertQueueJSON(ctx, txn, string(json))
|
||||
nid, err = d.RelayQueueJSON.InsertQueueJSON(ctx, txn, string(jsonTransaction))
|
||||
return err
|
||||
})
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue