Skip to content

Commit 4715817

Browse files
committed
fix: add max_relays to wasm config and clean up warnings
1 parent 4ac3a08 commit 4715817

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/bcr-ebill-transport/src/nostr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,7 @@ mod tests {
12531253
}
12541254

12551255
/// Internal relay calculation function (pure function for testing)
1256+
#[allow(dead_code)]
12561257
fn calculate_relay_set_internal(
12571258
user_relays: &[url::Url],
12581259
contacts: &[bcr_ebill_core::application::nostr_contact::NostrContact],
@@ -1309,8 +1310,7 @@ fn calculate_relay_set_internal(
13091310
#[cfg(test)]
13101311
mod relay_calculation_tests {
13111312
use super::*;
1312-
use bcr_ebill_core::application::nostr_contact::{NostrContact, TrustLevel, HandshakeStatus, NostrPublicKey};
1313-
use std::collections::HashSet;
1313+
use bcr_ebill_core::application::nostr_contact::{NostrContact, TrustLevel, HandshakeStatus};
13141314

13151315
fn create_test_contact(trust_level: TrustLevel, relays: Vec<&str>) -> NostrContact {
13161316
use bcr_ebill_core::protocol::crypto::BcrKeys;

crates/bcr-ebill-wasm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ pub async fn initialize_api(
131131
nostr_config: NostrConfig {
132132
relays: nostr_relays,
133133
only_known_contacts: config.nostr_only_known_contacts.unwrap_or(false),
134+
max_relays: Some(50),
134135
},
135136
mint_config: MintConfig::new(config.default_mint_url, mint_node_id)?,
136137
payment_config: PaymentConfig {

0 commit comments

Comments
 (0)