Skip to content

Commit

Permalink
feat(claim): add blaster to relay list
Browse files Browse the repository at this point in the history
this is a temporary fix until we handle relays more effectively
  • Loading branch information
DanConwayDev committed Jan 26, 2024
1 parent f212788 commit bd8eb65
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sub_commands/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {

let mut maintainers = vec![keys.public_key()];

let repo_relays: Vec<String> = if !args.relays.is_empty() {
let mut repo_relays: Vec<String> = if !args.relays.is_empty() {
args.relays.clone()
} else if let Ok(config) = &repo_config_result {
config.relays.clone()
Expand All @@ -84,6 +84,12 @@ 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.push("wss://nostr.mutinywallet.com".to_string());
}

if let Ok(config) = &repo_config_result {
maintainers = extract_pks(config.maintainers.clone())?;
}
Expand Down Expand Up @@ -119,7 +125,6 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
}
.to_event(&keys)?;

// TODO: send repo event to blaster
send_events(
&client,
vec![repo_event],
Expand Down

0 comments on commit bd8eb65

Please sign in to comment.