Skip to content

Commit

Permalink
[IMP] lcc_comchain_base: avoid unecessary waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Sainléger committed Jul 22, 2024
1 parent d6d309b commit 3bfcd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcc_comchain_base/models/res_partner_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ def credit_wallet(self, amount=0):
)
else:
break
time.sleep(0.5)
retry += 1
if retry >= 10:
return {
"success": False,
"response": response,
"error": "Max retry reached to get transaction info (10 retries)",
}
time.sleep(0.5)

if received != round(amount * 100):
return {
Expand Down

0 comments on commit 3bfcd4d

Please sign in to comment.