Correctly pass arangodb driver Transaction ID into the context (#3586)
Update arangodb_store.go
This commit is contained in:
@@ -121,7 +121,7 @@ func (store *ArangodbStore) BeginTransaction(ctx context.Context) (context.Conte
|
|||||||
return nil, err
|
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 {
|
func (store *ArangodbStore) CommitTransaction(ctx context.Context) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user