fix API error

This commit is contained in:
Kaan Genc 2022-01-23 22:29:32 -05:00
parent 66642836fa
commit 31d7d2e9ce

View file

@ -73,7 +73,7 @@ async fn main() -> anyhow::Result<()> {
bad_entry_type => die!("Unexpected type in config: {}", bad_entry_type),
};
let mut map = HashMap::new();
map.insert("rrset_values", ip);
map.insert("rrset_values", vec![ip]);
let req = client.put(url).json(&map);
let task = tokio::task::spawn(async move {
match req.send().await {