mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-12-26 15:19:59 -06:00
parent
e556c00901
commit
21dcd000a7
|
@ -96,9 +96,10 @@ async fn main() -> anyhow::Result<()> {
|
|||
};
|
||||
let req = client.put(url).json(&payload);
|
||||
let task_governor = governor.clone();
|
||||
let entry_type = entry_type.to_string();
|
||||
let task = tokio::task::spawn(async move {
|
||||
task_governor.until_ready_with_jitter(retry_jitter).await;
|
||||
println!("Updating {}", &fqdn);
|
||||
println!("Updating {} record for {}", entry_type, &fqdn);
|
||||
match req.send().await {
|
||||
Ok(response) => (
|
||||
response.status(),
|
||||
|
|
Loading…
Reference in a new issue