diff --git a/bindings/nostr-sdk-ffi/bindings-python/README.md b/bindings/nostr-sdk-ffi/bindings-python/README.md index 3b18dc740..819ac782d 100644 --- a/bindings/nostr-sdk-ffi/bindings-python/README.md +++ b/bindings/nostr-sdk-ffi/bindings-python/README.md @@ -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...") diff --git a/bindings/nostr-sdk-ffi/bindings-python/examples/client.py b/bindings/nostr-sdk-ffi/bindings-python/examples/client.py index 9614acda0..f64597f6b 100644 --- a/bindings/nostr-sdk-ffi/bindings-python/examples/client.py +++ b/bindings/nostr-sdk-ffi/bindings-python/examples/client.py @@ -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...") diff --git a/bindings/nostr-sdk-ffi/bindings-python/examples/relays.py b/bindings/nostr-sdk-ffi/bindings-python/examples/relays.py index 9ef8e636f..c3fc32ec2 100644 --- a/bindings/nostr-sdk-ffi/bindings-python/examples/relays.py +++ b/bindings/nostr-sdk-ffi/bindings-python/examples/relays.py @@ -30,7 +30,7 @@ async def main(): print("###########################################") - time.sleep(10.0) + await asyncio.sleep(10.0) if __name__ == '__main__':