From b278dcdc4c044aa5687fc043c9d5d74182a62281 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Thu, 5 Mar 2020 22:57:01 +0100
Subject: [PATCH] [fix] Use async.sleep() inbetween intermediaries tx

- time.sleep() has no effect on asynchrone requests
---
 silkaj/tx.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/silkaj/tx.py b/silkaj/tx.py
index 9e39fc96..74768215 100644
--- a/silkaj/tx.py
+++ b/silkaj/tx.py
@@ -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(
-- 
GitLab