Replies (2)

Hi @Yuki Kishimoto , I think I've found the problem here. It looks like the SDK is waiting for the timeout to finish before returning the result, instead of returning immediately after receiving the event from the relay. I've created a simple flow like this: 1. Spawn a task to listen for notifications via `client.notifications()` 2. In another task, send an event to the relay and get the output: `let event = client.send_event(event).await?` 3. You will see the notification in task <1> receive the OK event from the relay immediately. 4. However, in task <2>, the output only returns after 10 seconds (the default timeout). Sorry for put the issue here. My GH account is locked, I will create another one later.
Thanks, I'll check it, but I think that it's due to an unreachable relay that has just been added to the pool. The disconnected relays are skipped (return error instead of waiting) after the second failed attempt. To confirm it, can you try to decrease the connection timeout, configurable via the Client Builder? (I've added this feature yesterday in master branch). Or, have you a small code snippet to reproduce it? And what relays did you used? Regarding the issues, are perfect here on nostr. But instead of using the text notes, the NIP34 would be better. Here is the repo: For desktop you can use gitplaza, by @dluvian