DanConwayDev on Nostr: Thanks! Its really nice having a Reconciliation report returned. Its a little ...
Thanks! Its really nice having a Reconciliation report returned.
Its a little unintuitive that local returns all events and remote only returns the missing items.
If the `Reconciliation` struct included methods I'd be interested in:
```rust
fn not_on_relay(&self) -> HashSet<EventId>,
fn not_in_database(&self) -> HashSet<EventId>,
fn send_failures(&self) -> Vec<(EventId, Error)>,
fn receive_failures(&self) -> Vec<(EventId, Error)>,
```
Published at
2024-07-10 08:42:47Event JSON
{
"id": "b40518aa8bc0dbffd1796ea3bd61b28082dd2b01c26b384506fc875fa81ef26c",
"pubkey": "a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d",
"created_at": 1720600967,
"kind": 1,
"tags": [
[
"e",
"7ad5e3af2b0425dd67f7396652f5f9af6899c6825f575e8560a477f9a37c5d53",
"wss://relay.damus.io",
"root"
],
[
"e",
"41f8bbe1b95de50c49f66f4ace8e00104a35e527a16a460bb8ef5ff6b409466e",
"wss://relay.damus.io",
"reply"
],
[
"r",
"73f7c34fd424cae57a0da1be1f5fd31d9b8075c0"
],
[
"a",
"30617:68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272:rust-nostr"
],
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272",
"wss://nostr.mom/"
]
],
"content": "Thanks! Its really nice having a Reconciliation report returned.\nIts a little unintuitive that local returns all events and remote only returns the missing items.\nIf the `Reconciliation` struct included methods I'd be interested in:\n```rust\n fn not_on_relay(\u0026self) -\u003e HashSet\u003cEventId\u003e,\n fn not_in_database(\u0026self) -\u003e HashSet\u003cEventId\u003e,\n fn send_failures(\u0026self) -\u003e Vec\u003c(EventId, Error)\u003e,\n fn receive_failures(\u0026self) -\u003e Vec\u003c(EventId, Error)\u003e,\n```",
"sig": "34248227fcbd196b6d2ceb65b2249cb153be7367d2b529c3c77d26892dc5d5737adeefa259e29e2db92d51a18fdf7b1f6534af15e81eb65a0578d32e01100aae"
}