From 71712e4eda5d78516fa9a5a7c3ab85daf1dc0bbc Mon Sep 17 00:00:00 2001 From: ta3pks Date: Tue, 17 Jun 2025 13:29:52 +0200 Subject: [PATCH] remove unwrap trying to fetch visitor data (#60) Co-authored-by: nikos efthias Reviewed-on: https://codeberg.org/ThetaDev/rustypipe/pulls/60 Co-authored-by: ta3pks Co-committed-by: ta3pks --- src/util/visitor_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/visitor_data.rs b/src/util/visitor_data.rs index 8bc64c7..2de2cfe 100644 --- a/src/util/visitor_data.rs +++ b/src/util/visitor_data.rs @@ -110,7 +110,7 @@ impl VisitorDataCache { /// Fetch a new visitor data ID and store it in the cache pub async fn new_visitor_data(&self) -> Result { - let vd = self.fetch_visitor_data().await.unwrap(); + let vd = self.fetch_visitor_data().await?; self.inner .req_counter