Skip to content

Commit

Permalink
require discourse opts only if proceeding with proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa committed Nov 28, 2024
1 parent 99d81c6 commit 7eb24e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/cli/src/commands/update_authorized_subnets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ impl ExecutableCommand for UpdateAuthorizedSubnets {
.collect();

let ic_admin = ctx.ic_admin().await?;
let discourse_client = ctx.discourse_client()?;

let cmd = ProposeCommand::SetAuthorizedSubnetworks { subnets: authorized };
let opts = ProposeOptions {
Expand All @@ -141,6 +140,7 @@ impl ExecutableCommand for UpdateAuthorizedSubnets {
return Ok(());
}

let discourse_client = ctx.discourse_client()?;
let maybe_topic = discourse_client.create_authorized_subnets_update_forum_post(summary).await?;

let proposal_response = ic_admin
Expand Down

0 comments on commit 7eb24e6

Please sign in to comment.