From a1d67c50c8ebc5395b069e30b60d66e0c7de5a5a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 14 Feb 2024 13:47:11 +0000 Subject: feat: send to default relays, blast repo event improve the distribution of events by sending to default relays in addition to user and repo relays. for better discoverability of repo events, this is also blasted. a temporary fix to blast everything was removed. the less reliable purplepages.es relay is moved to more_fallback_relays that currently isn't used --- src/sub_commands/init.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/sub_commands/init.rs') diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs index a95021d..9fdcca5 100644 --- a/src/sub_commands/init.rs +++ b/src/sub_commands/init.rs @@ -81,7 +81,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { let mut maintainers = vec![keys.public_key()]; - let mut repo_relays: Vec = if !args.relays.is_empty() { + let repo_relays: Vec = if !args.relays.is_empty() { args.relays.clone() } else if let Ok(config) = &repo_config_result { config.relays.clone() @@ -92,16 +92,6 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { user_ref.relays.write() }; - // TODO: add blaster for just repo event and don't add it to repo relays - // TODO: fix the tests to support blaster - if std::env::var("NGITTEST").is_err() - && !repo_relays - .iter() - .any(|s| s.contains("nostr.mutinywallet.com")) - { - repo_relays.push("wss://nostr.mutinywallet.com".to_string()); - } - if let Ok(config) = &repo_config_result { maintainers = extract_pks(config.maintainers.clone())?; } -- cgit v1.2.3