From 785ad7714b00fa7f884f4f433df86d6d59235a53 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 15 Jan 2025 04:44:49 +0200 Subject: [PATCH] rename enum item --- src/app/browser/window/tab/item/page/client.rs | 2 +- src/app/browser/window/tab/item/page/client/status.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page/client.rs b/src/app/browser/window/tab/item/page/client.rs index d8487d01..68a7db12 100644 --- a/src/app/browser/window/tab/item/page/client.rs +++ b/src/app/browser/window/tab/item/page/client.rs @@ -82,7 +82,7 @@ impl Client { // * this condition just to make sure that client will never stuck by driver implementation issue if self.redirect.count() > redirect::LIMIT { self.status - .replace(Status::RedirectLimit((now(), redirect::LIMIT))); + .replace(Status::GlobalRedirectLimit((now(), redirect::LIMIT))); // @TODO return; } } diff --git a/src/app/browser/window/tab/item/page/client/status.rs b/src/app/browser/window/tab/item/page/client/status.rs index cf6327a2..666ed93a 100644 --- a/src/app/browser/window/tab/item/page/client/status.rs +++ b/src/app/browser/window/tab/item/page/client/status.rs @@ -9,7 +9,7 @@ pub enum Status { /// Operation cancelled, new `Cancellable` required to continue Cancelled(DateTime), /// Redirection count limit reached by protocol driver or global settings - RedirectLimit((DateTime, usize)), + GlobalRedirectLimit((DateTime, usize)), /// New `request` begin Request((DateTime, String)), } @@ -31,8 +31,8 @@ impl Display for Status { format_time(t) ) } - Self::RedirectLimit((t, count)) => { - write!(f, "[{}] Redirection count limit ({count}) reached by protocol driver or global settings", + Self::GlobalRedirectLimit((t, count)) => { + write!(f, "[{}] Global redirection limit ({count}) reached by protocol driver or global settings", format_time(t)) } Self::Request((t, value)) => {