Skip to content

Commit

Permalink
chore: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-kindred committed Nov 27, 2024
1 parent 6c9f7fc commit 7b09ef8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions packages/talos_certifier/src/services/certifier_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ impl CertifierService {
self.suffix.update_prune_index(candidate_version_index);
}

let prune_index_before_pruning = self.suffix.get_meta().prune_index;

let mut prune_candidate_version = None;
if prune_index_before_pruning.is_some() {
if let Some(item) = self.suffix.messages[prune_index_before_pruning.unwrap()].clone() {
if let Some(prune_index_before_pruning) = self.suffix.get_meta().prune_index {
if let Some(Some(item)) = self.suffix.messages.get(prune_index_before_pruning) {
prune_candidate_version = Some(item.item_ver);
}
};
Expand Down
4 changes: 2 additions & 2 deletions packages/talos_certifier_adapters/src/postgres/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use log::warn;
use log::debug;
use talos_common_utils::{env_var, env_var_with_defaults};

#[derive(Debug, Clone)]
Expand All @@ -14,7 +14,7 @@ pub struct PgConfig {
impl PgConfig {
pub fn from_env() -> PgConfig {
let pool_size = env_var_with_defaults!("PG_POOL_SIZE", Option::<u32>);
warn!("Pool size used... {pool_size:?}");
debug!("Pool size used... {pool_size:?}");
PgConfig {
user: env_var!("PG_USER"),
password: env_var!("PG_PASSWORD"),
Expand Down

0 comments on commit 7b09ef8

Please sign in to comment.