diff --git a/backend/src/cdn.rs b/backend/src/cdn.rs index 1bf3253..0c53dc8 100644 --- a/backend/src/cdn.rs +++ b/backend/src/cdn.rs @@ -19,7 +19,6 @@ impl Cloudflare { ) -> impl Future { let payload = CfPurgeRequest::singleton::(file); println!("{:#?}", payload); - eprintln!("{:#?}", payload); client .post(format!( "https://api.cloudflare.com/client/v4/zones/{}/purge_cache", @@ -73,15 +72,14 @@ struct CfPurgeRequest { impl CfPurgeRequest { fn singleton(file: &str) -> Self { - let url = format!( - "https://{}/{}/{}", - statics::HOSTNAME.as_str(), - T::path(), - file - ); - println!("{}", url); - eprintln!("{}", url); - Self { files: vec![url] } + Self { + files: vec![format!( + "https://{}/{}/{}", + statics::HOSTNAME.as_str(), + T::path(), + file + )], + } } }