Skip to content

Commit 21551f6

Browse files
committed
Bump nostr-sdk to a620e3fe
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 5ccefd7 commit 21551f6

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

rust/Cargo.lock

Lines changed: 15 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ anyhow = "1.0"
2121
chrono = "0.4"
2222
flutter_rust_bridge = { version = "=2.0.0", features = ["anyhow", "chrono"] }
2323
flutter_rust_bridge_codegen = { version = "=2.0.0", optional = true }
24-
nostr-sdk = { version = "0.39", default-features = false, features = ["all-nips", "lmdb", "tor"] }
25-
#nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "265011f7766fa104bfc9da63be83d54bad543c5b", default-features = false, features = ["all-nips", "tor"] }
24+
#nostr-sdk = { version = "0.39", default-features = false, features = ["all-nips", "lmdb", "tor"] }
25+
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "a620e3fef5aaef343f5edf58bd682cea5744d488", default-features = false, features = ["all-nips", "lmdb", "tor"] }
2626

2727
[lints.rust]
2828
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }

rust/src/api/client/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl _Client {
319319
/// Send `Event` to all relays with `WRITE` flag.
320320
/// If `gossip` option is enabled, the event will be sent also to NIP65 relays (automatically discovered).
321321
pub async fn send_event(&self, event: &_Event) -> Result<SendEventOutput> {
322-
let output = self.inner.send_event(event.inner.clone()).await?;
322+
let output = self.inner.send_event(&event.inner).await?;
323323
Ok(output.into())
324324
}
325325

@@ -329,7 +329,7 @@ impl _Client {
329329
urls: Vec<String>,
330330
event: &_Event,
331331
) -> Result<SendEventOutput> {
332-
let output = self.inner.send_event_to(urls, event.inner.clone()).await?;
332+
let output = self.inner.send_event_to(urls, &event.inner).await?;
333333
Ok(output.into())
334334
}
335335

rust/src/api/protocol/event/id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl _EventId {
4141
) -> Result<Self> {
4242
let created_at = Timestamp::from_secs(created_at);
4343
let kind = Kind::from_u16(kind);
44-
let tags: Vec<Tag> = tags.iter().map(|t| t.inner.clone()).collect();
44+
let tags: Tags = tags.iter().map(|t| t.inner.clone()).collect();
4545
Ok(Self {
4646
inner: EventId::new(public_key.deref(), &created_at, &kind, &tags, content),
4747
})

0 commit comments

Comments
 (0)