diff options
| author | Your Name <you@example.com> | 2026-05-27 16:59:08 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-27 16:59:08 +0530 |
| commit | cd7d6dd7975eff18b49665f6ebcabee78b204f76 (patch) | |
| tree | d8ba012e4b324cb81868b3acdc426b8c2f007614 /src/git_mirror.rs | |
| parent | d889b890f9e63815c178853ed98a1e31f6cec7f8 (diff) | |
Fix compile errors: enable nip04/nip46 features, fix API mismatches
- Cargo.toml: enable nip04 + nip46 features on nostr crate
- nip46.rs: secret_key() returns &SecretKey not Result, remove ? operator
- nip46.rs: EventBuilder::new takes 2 args, use .tags() for tags
- nip46.rs: fix async block in timeout map_err
- git_mirror.rs: relay_url is a field not a method
Diffstat (limited to 'src/git_mirror.rs')
| -rw-r--r-- | src/git_mirror.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git_mirror.rs b/src/git_mirror.rs index cdf853e..47b0efb 100644 --- a/src/git_mirror.rs +++ b/src/git_mirror.rs | |||
| @@ -78,7 +78,7 @@ impl GitMirror { | |||
| 78 | ); | 78 | ); |
| 79 | 79 | ||
| 80 | if let Some(ref event) = state_event { | 80 | if let Some(ref event) = state_event { |
| 81 | let relay_url = server.relay_url(); | 81 | let relay_url = server.relay_url.clone(); |
| 82 | if let Ok(url) = RelayUrl::parse(&relay_url) { | 82 | if let Ok(url) = RelayUrl::parse(&relay_url) { |
| 83 | let urls = vec![url]; | 83 | let urls = vec![url]; |
| 84 | if let Err(e) = nostr_client.send_event_to(urls, event.clone()).await { | 84 | if let Err(e) = nostr_client.send_event_to(urls, event.clone()).await { |