From 8fe7737a491d6056d6e865bfdecd02e3dda3e8f5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 31 Jul 2025 12:02:08 +0100 Subject: chore: bump rust-nostr v0.43 with trival breaking changes. nip05 changes will be done seperately. --- test_utils/Cargo.toml | 8 ++++---- test_utils/src/lib.rs | 2 +- test_utils/src/relay.rs | 8 ++++++-- 3 files changed, 11 insertions(+), 7 deletions(-) (limited to 'test_utils') diff --git a/test_utils/Cargo.toml b/test_utils/Cargo.toml index 8602416..236ba80 100644 --- a/test_utils/Cargo.toml +++ b/test_utils/Cargo.toml @@ -10,10 +10,10 @@ dialoguer = "0.11.0" directories = "6.0.0" futures = "0.3.31" git2 = "0.20.2" -nostr = "0.42.2" -nostr-database = "0.42.0" -nostr-lmdb = "0.42.0" -nostr-sdk = "0.42.0" +nostr = "0.43.0" +nostr-database = "0.43.0" +nostr-lmdb = "0.43.0" +nostr-sdk = "0.43.0" 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 7d79cff..3ae004f 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -13,7 +13,7 @@ use futures::{executor::block_on, future::join_all}; use git::GitTestRepo; use git2::{Signature, Time}; use nostr::{self, Kind, Tag, nips::nip65::RelayMetadata}; -use nostr_database::NostrEventsDatabase; +use nostr_database::NostrDatabase; use nostr_lmdb::NostrLMDB; use nostr_sdk::{Client, Event, NostrSigner, TagStandard, serde_json}; use once_cell::sync::Lazy; diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs index b14f532..8a982a4 100644 --- a/test_utils/src/relay.rs +++ b/test_utils/src/relay.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use anyhow::{Result, bail}; -use nostr::{ClientMessage, JsonUtil, RelayMessage}; +use nostr::{ClientMessage, JsonUtil, RelayMessage, filter::MatchEventOptions}; use crate::CliTester; @@ -105,7 +105,11 @@ impl<'a> Relay<'a> { &self .events .iter() - .filter(|e| filters.iter().any(|filter| filter.match_event(e))) + .filter(|e| { + filters + .iter() + .any(|filter| filter.match_event(e, MatchEventOptions::default())) + }) .filter(|_| true) .cloned() .collect(), -- cgit v1.2.3