From 2a23bd20440b0d1a359c6bb4385b6771f2657a3b Mon Sep 17 00:00:00 2001 From: Shoelace Date: Wed, 19 May 2021 21:44:58 +0200 Subject: Threaded to async (#58) * Add async deps * Rename blocks to 'BlockManager' * Refactor "Blocks" to own module * Make all util fn async * Remove stray println --- src/utils/pub_ip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/pub_ip.rs') diff --git a/src/utils/pub_ip.rs b/src/utils/pub_ip.rs index 4f1335f..dde354a 100644 --- a/src/utils/pub_ip.rs +++ b/src/utils/pub_ip.rs @@ -1,7 +1,7 @@ use crate::config::CONFIG; use crate::types::ThreadsData; -pub fn get_pub_ip() -> ThreadsData { +pub async fn get_pub_ip() -> ThreadsData { let url = "http://api.ipify.org".to_string(); let _err = String::from("Error"); let res = match minreq::get(url).send() { -- cgit v1.2.3