mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-12-27 23:59:56 -06:00
fix API error
This commit is contained in:
parent
66642836fa
commit
31d7d2e9ce
|
@ -73,7 +73,7 @@ async fn main() -> anyhow::Result<()> {
|
||||||
bad_entry_type => die!("Unexpected type in config: {}", bad_entry_type),
|
bad_entry_type => die!("Unexpected type in config: {}", bad_entry_type),
|
||||||
};
|
};
|
||||||
let mut map = HashMap::new();
|
let mut map = HashMap::new();
|
||||||
map.insert("rrset_values", ip);
|
map.insert("rrset_values", vec![ip]);
|
||||||
let req = client.put(url).json(&map);
|
let req = client.put(url).json(&map);
|
||||||
let task = tokio::task::spawn(async move {
|
let task = tokio::task::spawn(async move {
|
||||||
match req.send().await {
|
match req.send().await {
|
||||||
|
|
Loading…
Reference in a new issue