remove unwrap trying to fetch visitor data (#60)

Co-authored-by: nikos efthias <nikos@mugsoft.io>
Reviewed-on: https://codeberg.org/ThetaDev/rustypipe/pulls/60
Co-authored-by: ta3pks <ta3pks@noreply.codeberg.org>
Co-committed-by: ta3pks <ta3pks@noreply.codeberg.org>
This commit is contained in:
ta3pks 2025-06-17 13:29:52 +02:00 committed by ThetaDev
parent 1f4c9c85b9
commit 71712e4eda

View file

@ -110,7 +110,7 @@ impl VisitorDataCache {
/// Fetch a new visitor data ID and store it in the cache /// Fetch a new visitor data ID and store it in the cache
pub async fn new_visitor_data(&self) -> Result<String, Error> { pub async fn new_visitor_data(&self) -> Result<String, Error> {
let vd = self.fetch_visitor_data().await.unwrap(); let vd = self.fetch_visitor_data().await?;
self.inner self.inner
.req_counter .req_counter