mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-23 23:55:01 +01:00
@@ -46,8 +46,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
let rustls_filter = "rustls=warn";
|
||||
|
||||
let env_filter = EnvFilter::new(format!(
|
||||
"{},{},{},{},{}",
|
||||
default_filter, sqlx_filter, hyper_filter, h2_filter, rustls_filter
|
||||
"{default_filter},{sqlx_filter},{hyper_filter},{h2_filter},{rustls_filter}"
|
||||
));
|
||||
|
||||
tracing_subscriber::fmt().with_env_filter(env_filter).init();
|
||||
|
||||
@@ -34,7 +34,7 @@ pub struct PaymentProcessorClient {
|
||||
impl PaymentProcessorClient {
|
||||
/// Payment Processor
|
||||
pub async fn new(addr: &str, port: u16, tls_dir: Option<PathBuf>) -> anyhow::Result<Self> {
|
||||
let addr = format!("{}:{}", addr, port);
|
||||
let addr = format!("{addr}:{port}");
|
||||
let channel = if let Some(tls_dir) = tls_dir {
|
||||
// TLS directory exists, configure TLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user