Why Nostr? What is Njump?
2024-07-09 20:53:56
in reply to

Yuki Kishimoto on Nostr: What do you think of this solution? ```rust let opts = NegentropyOptions::default(); ...

What do you think of this solution?

https://github.com/rust-nostr/nostr/pull/495

```rust
let opts = NegentropyOptions::default(); // Add `.dry_run()` to only check local and remote events without get them
let output = client.reconcile(filter, opts).await?;
println!("Local: {}", output.local.len());
println!("Remote: {}", output.remote.len());
println!("Sent: {}", output.sent.len());
println!("Received: {}", output.received.len());
```
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet