From d08138ea633da76d9ca390e4f9e3c5489aee23d1 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 5 Jul 2021 22:03:47 +0200 Subject: Update reqwest and make async. This means adding the full tokio as a dependency. While there isn't much gain to going async in the current cli demo app, a full fledged app may have more to gain by it. First foray into async rust, so I might not do it right... --- src/bin/zot/zot/abconfig.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/zot/zot/abconfig.rs') diff --git a/src/bin/zot/zot/abconfig.rs b/src/bin/zot/zot/abconfig.rs index 2e357e4..14875c8 100644 --- a/src/bin/zot/zot/abconfig.rs +++ b/src/bin/zot/zot/abconfig.rs @@ -17,8 +17,8 @@ use zotapi; -pub fn fetch(client: &zotapi::Client) { - match zotapi::ABConfig::z().fetch(&client) { +pub async fn fetch(client: &zotapi::Client) { + match zotapi::ABConfig::z().fetch(&client).await { Ok(v) => { println!("Id: Chan: Cat: Key: Val: xchan:"); for entry in v { -- cgit v1.2.3