Skip to content

Commit

Permalink
ffi: use asyncio.sleep instead of time.sleep
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Jun 10, 2024
1 parent 60cb27f commit caf7a2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-ffi/bindings-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def main():
print(f" hex: {event_id.to_hex()}")
print(f" bech32: {event_id.to_bech32()}")

time.sleep(2.0)
await asyncio.sleep(2.0)

# Get events from relays
print("Getting events from relays...")
Expand Down
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-ffi/bindings-python/examples/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def main():
print(f" hex: {event_id.to_hex()}")
print(f" bech32: {event_id.to_bech32()}")

time.sleep(2.0)
await asyncio.sleep(2.0)

# Get events from relays
print("Getting events from relays...")
Expand Down
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-ffi/bindings-python/examples/relays.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def main():

print("###########################################")

time.sleep(10.0)
await asyncio.sleep(10.0)


if __name__ == '__main__':
Expand Down

0 comments on commit caf7a2e

Please sign in to comment.