Skip to content

Commit

Permalink
fixed ConfimCancelAsync and ConfimCancel in tcc with connection issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
zengtengcq committed Jul 15, 2024
1 parent 1cfc24a commit b609587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FreeSql.Cloud/Tcc/TccMaster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ ITccUnit[] LocalGetUnits() => unitInfos.Select(unitInfo =>
SetTccState(units[idx], unitInfo);
var ormMaster = cloud._ormMaster;
#if net40
using (var conn = cloud.Ado.MasterPool.Get())
using (var conn = ormMaster.Ado.MasterPool.Get())
#else
using (var conn = await cloud.Ado.MasterPool.GetAsync())
using (var conn = await ormMaster.Ado.MasterPool.GetAsync())
#endif
{
var tran = conn.Value.BeginTransaction();
Expand Down

0 comments on commit b609587

Please sign in to comment.