lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit 80a09e7d33a1efa53d63bb13852f107619fd9549
parent fedaa5799af73fedb643e424af32e54cfcdf2c15
Author: triesap <tyson@radroots.org>
Date:   Thu,  5 Mar 2026 01:47:35 +0000

nostr-runtime: close no-default strict region gaps

Diffstat:
Mcrates/nostr-runtime/src/types.rs | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/crates/nostr-runtime/src/types.rs b/crates/nostr-runtime/src/types.rs @@ -173,10 +173,10 @@ mod tests { assert_eq!(spec.name.as_deref(), Some("posts")); assert_eq!(spec.stream_timeout_secs, 12); assert_eq!(spec.reconnect_delay_millis, 99); - assert!(matches!( + assert_eq!( spec.policy, RadrootsNostrSubscriptionPolicy::OneShotOnEose - )); + ); } #[test] @@ -190,16 +190,16 @@ mod tests { assert_eq!(spec.name.as_deref(), Some("posts")); assert_eq!(spec.stream_timeout_secs, 12); assert_eq!(spec.reconnect_delay_millis, 99); - assert!(matches!( + assert_eq!( spec.policy, RadrootsNostrSubscriptionPolicy::OneShotOnEose - )); + ); } #[test] fn connection_snapshot_default_is_red() { let snapshot = RadrootsNostrConnectionSnapshot::default(); - assert!(matches!(snapshot.light, RadrootsNostrTrafficLight::Red)); + assert_eq!(snapshot.light, RadrootsNostrTrafficLight::Red); assert_eq!(snapshot.connected, 0); assert_eq!(snapshot.connecting, 0); assert!(snapshot.last_error.is_none());