Remove some debug output
This commit is contained in:
parent
0d1206fed2
commit
fa4bf3e6dc
@ -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] }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user