Skip to content

Commit

Permalink
chore(ic-boundary): removing deprecated CLI option (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-birkner authored Jul 17, 2024
1 parent f5491f4 commit 9a3aa19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions rs/boundary_node/ic_boundary/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ pub struct RateLimitingConfig {
/// Allowed number of update calls per second per ip per boundary node. Panics if 0 is passed!
#[clap(long)]
pub rate_limit_per_second_per_ip: Option<u32>,
/// Allowed number of ledger transfer calls per second
#[clap(long, value_parser = clap::value_parser!(u32).range(1..))]
pub rate_limit_ledger_transfer: Option<u32>,
/// Path to a generic rate-limiter rules, if the file does not exist - no rules are applied.
/// File is checked every 10sec and is reloaded if the changes are detected.
/// Expecting YAML list with objects that have (canister_id, methods, limit) fields.
Expand Down
6 changes: 5 additions & 1 deletion rs/boundary_node/ic_boundary/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ pub async fn load_or_create_acme_account(
return Ok(account);
}

warn!("TLS: Creating new ACME account");
// Create new account
let account = Account::create_with_http(
&NewAccount {
Expand Down Expand Up @@ -453,6 +454,8 @@ async fn prepare_acme_provisioner(
tls_loader: Loader,
token_owner: Arc<TokenOwner>,
) -> Result<Box<dyn Provision>, Error> {
warn!("TLS: Using ACME provisioner");

// ACME client
let acme_http_client = hyper::Client::builder().build(
hyper_rustls::HttpsConnectorBuilder::new()
Expand All @@ -470,6 +473,7 @@ async fn prepare_acme_provisioner(
.await
.context("failed to load acme credentials")?;

warn!("TLS: Trying to provision certificate");
let acme_client = Acme::new(acme_account);

let acme_order = acme_client.clone();
Expand Down Expand Up @@ -501,7 +505,7 @@ async fn prepare_acme_provisioner(
let tls_provisioner = WithLoad(tls_provisioner, tls_loader, renew_before);
let tls_provisioner = Box::new(tls_provisioner);

warn!("TLS: Using ACME provisioner");
warn!("TLS: Successfully set up ACME provisioner");
Ok(tls_provisioner)
}

Expand Down

0 comments on commit 9a3aa19

Please sign in to comment.