From d282251af19fc7d5d4200a9441999bd1a81b2ae8 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 14 Nov 2025 07:37:57 +0000 Subject: chore: bump rust-nostr v0.44 fix breaking changes --- test_utils/Cargo.toml | 8 ++++---- test_utils/src/lib.rs | 2 +- test_utils/src/relay.rs | 7 +++++-- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'test_utils') diff --git a/test_utils/Cargo.toml b/test_utils/Cargo.toml index 016cc19..e7f5e05 100644 --- a/test_utils/Cargo.toml +++ b/test_utils/Cargo.toml @@ -10,10 +10,10 @@ dialoguer = "0.12.0" directories = "6.0.0" futures = "0.3.31" git2 = "0.20.2" -nostr = "0.43.0" -nostr-database = "0.43.0" -nostr-lmdb = "0.43.0" -nostr-sdk = "0.43.0" +nostr = "0.44.1" +nostr-database = "0.44.0" +nostr-lmdb = "0.44.0" +nostr-sdk = "0.44.1" once_cell = "1.21.3" rand = "0.9" rexpect = { git = "https://github.com/rust-cli/rexpect.git", rev = "9eb61dd" } diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 22bdf90..bdfc550 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -135,7 +135,7 @@ pub fn make_event_old_or_change_user( .build(keys.public_key()); unsigned.created_at = - nostr::types::Timestamp::from(nostr::types::Timestamp::now().as_u64() - how_old_in_secs); + nostr::types::Timestamp::from(nostr::types::Timestamp::now().as_secs() - how_old_in_secs); unsigned.id = Some(nostr::EventId::new( &keys.public_key(), &unsigned.created_at, diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs index 313e824..9582bfd 100644 --- a/test_utils/src/relay.rs +++ b/test_utils/src/relay.rs @@ -219,10 +219,13 @@ fn get_nreq( let cm_result = ClientMessage::from_json(s); if let Ok(ClientMessage::Req { subscription_id, - filter, + filters, }) = cm_result { - return Ok((subscription_id.into_owned(), filter.into_owned())); + return Ok(( + subscription_id.into_owned(), + filters.into_iter().next().unwrap().into_owned(), + )); } } bail!("not nostr event") -- cgit v1.2.3