Correctly pass arangodb driver Transaction ID into the context (#3586)

Update arangodb_store.go
This commit is contained in:
gfx 2022-09-04 21:29:52 -05:00 committed by GitHub
parent 8c5759a06d
commit 3621987727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ func (store *ArangodbStore) BeginTransaction(ctx context.Context) (context.Conte
return nil, err
}
return context.WithValue(ctx, transactionKey, txn), nil
return context.WithValue(driver.WithTransactionID(ctx, txn), transactionKey, txn), nil
}
func (store *ArangodbStore) CommitTransaction(ctx context.Context) error {