Skip to content

Commit

Permalink
feat: update crates
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvescosta committed Jun 13, 2024
1 parent cbb436c commit d1c35b3
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion health_http_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ health-readiness = { path = '../health_readiness' }
thiserror = { workspace = true }
tracing = { workspace = true }
opentelemetry = { workspace = true }
actix-web = { version = "4.6.0" }
actix-web = { version = "4.7.0" }

prometheus = { version = "0.13.4", optional = true }

Expand Down
4 changes: 2 additions & 2 deletions health_http_server/src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mod tiny_server;
mod server;

pub use tiny_server::TinyHTTPServer;
pub use server::TinyHTTPServer;
File renamed without changes.
3 changes: 2 additions & 1 deletion http_components/src/handlers/health.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use crate::viewmodels::HTTPError;
use actix_web::{error::HttpError, get, web, HttpResponse};
use health_readiness::HealthReadinessService;
use std::sync::Arc;

#[get("/health")]
pub async fn health_handler(
service: web::Data<dyn HealthReadinessService>,
service: web::Data<Arc<dyn HealthReadinessService>>,
) -> Result<HttpResponse, HttpError> {
match service.validate().await {
Ok(_) => Ok(HttpResponse::Ok().finish()),
Expand Down
4 changes: 2 additions & 2 deletions http_server/src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mod http_server;
mod server;

pub use http_server::HTTPServer;
pub use server::HTTPServer;
File renamed without changes.
2 changes: 1 addition & 1 deletion metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ prometheus = { version = "0.13.4" }
opentelemetry-prometheus = { version = "0.16", optional = true }

# Stdout
opentelemetry-stdout = { version = "0.3", features = ["metrics"], optional = true }
opentelemetry-stdout = { version = "0.4", features = ["metrics"], optional = true }
7 changes: 3 additions & 4 deletions secrets_manager/src/aws_client_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ use tracing::error;

#[derive(Default)]
pub struct AWSSecretClientBuilder {
env: String,
secret_key: String,
}

#[cfg_attr(test, automock)]
#[cfg_attr(mock, automock)]
impl AWSSecretClientBuilder {
pub fn new(env: String, secret_key: String) -> AWSSecretClientBuilder {
AWSSecretClientBuilder { env, secret_key }
pub fn new(secret_key: String) -> AWSSecretClientBuilder {
AWSSecretClientBuilder { secret_key }
}

fn secret_id(&self) -> String {
format!("{}/{}", self.env, self.secret_key)
format!("{}", self.secret_key)
}

pub async fn build(&self) -> Result<AWSSecretClient, SecretsManagerError> {
Expand Down

0 comments on commit d1c35b3

Please sign in to comment.