Remove some debug output

This commit is contained in:
Valentin Brandl 2019-07-28 20:45:58 +02:00
parent 0d1206fed2
commit fa4bf3e6dc
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -19,7 +19,6 @@ impl Cloudflare {
) -> impl Future<Item = HttpResponse, Error = Error> { ) -> impl Future<Item = HttpResponse, Error = Error> {
let payload = CfPurgeRequest::singleton::<T>(file); let payload = CfPurgeRequest::singleton::<T>(file);
println!("{:#?}", payload); println!("{:#?}", payload);
eprintln!("{:#?}", payload);
client client
.post(format!( .post(format!(
"https://api.cloudflare.com/client/v4/zones/{}/purge_cache", "https://api.cloudflare.com/client/v4/zones/{}/purge_cache",
@ -73,15 +72,14 @@ struct CfPurgeRequest {
impl CfPurgeRequest { impl CfPurgeRequest {
fn singleton<T: Service>(file: &str) -> Self { fn singleton<T: Service>(file: &str) -> Self {
let url = format!( Self {
"https://{}/{}/{}", files: vec![format!(
statics::HOSTNAME.as_str(), "https://{}/{}/{}",
T::path(), statics::HOSTNAME.as_str(),
file T::path(),
); file
println!("{}", url); )],
eprintln!("{}", url); }
Self { files: vec![url] }
} }
} }