Skip to content
Snippets Groups Projects
Commit b278dcdc authored by Moul's avatar Moul
Browse files

[fix] Use async.sleep() inbetween intermediaries tx

- time.sleep() has no effect on asynchrone requests
parent 47a35b45
No related branches found
No related tags found
2 merge requests!146Merge dev into master branch to complete v0.8.0 development cycle,!131Multiple small changes
......@@ -17,7 +17,7 @@ along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
from re import compile, search
import math
from time import sleep
from asyncio import sleep
from tabulate import tabulate
from click import command, option, FloatRange
......@@ -286,7 +286,7 @@ async def handle_intermediaries_transactions(
[issuers],
"Change operation",
)
sleep(1) # wait 1 second before sending a new transaction
await sleep(1) # wait 1 second before sending a new transaction
else:
await generate_and_send_transaction(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment