refactor reqwest client suite w/ conf items.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and June committed 2024-03-23 01:49:27 -04:00
1 parent 61b1d6d869
commit 9334f938ae
7 files changed
+173 -96

No files matched your search

+1 -1
View File
@@ -1058,7 +1058,7 @@ fn start_check_for_updates_task() {
async fn try_handle_updates() -> Result<()> {
let response =
services().globals.default_client().get("https://pupbrain.dev/check-for-updates/stable").send().await?;
services().globals.client.default.get("https://pupbrain.dev/check-for-updates/stable").send().await?;
let response = serde_json::from_str::<CheckForUpdatesResponse>(&response.text().await?).map_err(|e| {
error!("Bad check for updates response: {e}");