mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-12-26 15:19:59 -06:00
Fix spawn local panic about local set
This commit is contained in:
parent
a9629ad4a3
commit
05a3fb6c89
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -270,7 +270,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "gandi-live-dns"
|
||||
version = "1.1.0"
|
||||
version = "1.2.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gandi-live-dns"
|
||||
version = "1.2.0"
|
||||
version = "1.2.1"
|
||||
edition = "2021"
|
||||
authors = ["Kaan Barmore-Genç <kaan@bgenc.net>"]
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
};
|
||||
let req = client.put(url).json(&payload);
|
||||
let task_governor = governor.clone();
|
||||
let task = tokio::task::spawn_local(async move {
|
||||
let task = tokio::task::spawn(async move {
|
||||
task_governor.until_ready_with_jitter(retry_jitter).await;
|
||||
println!("Updating {}", &fqdn);
|
||||
match req.send().await {
|
||||
|
|
Loading…
Reference in a new issue