Skip to content

Commit ed4c1fb

Browse files
authored
Merge pull request #1558 from andrewwhitehead/fix/sleep
Await asyncio.sleeps
2 parents 3d286f0 + 0420030 commit ed4c1fb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

aries_cloudagent/protocols/discovery/v1_0/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async def check_if_disclosure_received(
133133
)
134134
if ex_rec.disclose:
135135
return ex_rec
136-
asyncio.sleep(0.5)
136+
await asyncio.sleep(0.5)
137137

138138
async def create_and_send_query(
139139
self, query: str, comment: str = None, connection_id: str = None

aries_cloudagent/protocols/discovery/v2_0/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def check_if_disclosure_received(
192192
)
193193
if ex_rec.disclosures:
194194
return ex_rec
195-
asyncio.sleep(0.5)
195+
await asyncio.sleep(0.5)
196196

197197
async def create_and_send_query(
198198
self,

aries_cloudagent/protocols/out_of_band/v1_0/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ async def conn_rec_is_active(self, conn_rec_id: str) -> ConnRecord:
928928
conn_rec = await ConnRecord.retrieve_by_id(session, conn_rec_id)
929929
if conn_rec.is_ready:
930930
return conn_rec
931-
asyncio.sleep(0.5)
931+
await asyncio.sleep(0.5)
932932

933933
async def create_handshake_reuse_message(
934934
self,

0 commit comments

Comments
 (0)