Skip to content

Commit 7952369

Browse files
remove retry :|
1 parent eb9167d commit 7952369

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

TransactionProcessor.BusinessLogic/Services/SettlementDomainService.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ private async Task<Result> ApplyTransactionUpdates(Func<TransactionAggregate, Ta
100100

101101
public async Task<Result<Guid>> ProcessSettlement(SettlementCommands.ProcessSettlementCommand command,
102102
CancellationToken cancellationToken) {
103-
IAsyncPolicy<Result<Guid>> retryPolicy = PolicyFactory.CreatePolicy<Guid>(policyTag: "SettlementDomainService - ProcessSettlement");
104-
105-
return await PolicyFactory.ExecuteWithPolicyAsync<Guid>(async () => {
106103
Guid settlementAggregateId = Helpers.CalculateSettlementAggregateId(command.SettlementDate, command.MerchantId, command.EstateId);
107104
List<(Guid transactionId, Guid merchantId, CalculatedFee calculatedFee)> feesToBeSettled = new();
108105

@@ -164,7 +161,6 @@ public async Task<Result<Guid>> ProcessSettlement(SettlementCommands.ProcessSett
164161
}
165162

166163
return Result.Success(settlementAggregateId);
167-
}, retryPolicy, "SettlementDomainService - ProcessSettlement");
168164
}
169165

170166
public async Task<Result> AddMerchantFeePendingSettlement(SettlementCommands.AddMerchantFeePendingSettlementCommand command,

0 commit comments

Comments
 (0)