Skip to content

Commit

Permalink
chore(page): fix feat decentralize compile error status
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Jan 7, 2025
1 parent de1e779 commit 77ec77e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spider/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider"
version = "2.24.10"
version = "2.24.11"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down
5 changes: 3 additions & 2 deletions spider/src/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ fn should_attempt_retry(error: &(dyn std::error::Error + 'static)) -> bool {


/// Get the error status of the page base.
#[cfg(not(feature = "decentralized"))]
fn get_error_status_base(should_retry: &mut bool, error_for_status: Option<Result<reqwest::Response, reqwest::Error>> ) -> Option<reqwest::Error> {
match error_for_status {
Some(e) => match e {
Expand All @@ -461,13 +462,13 @@ fn get_error_status_base(should_retry: &mut bool, error_for_status: Option<Resul
}
}

#[cfg(not(feature = "page_error_status_details"))]
#[cfg(all(not(feature = "page_error_status_details"), not(feature = "decentralized")))]
/// Get the error status of the page.
fn get_error_status(should_retry: &mut bool, error_for_status: Option<Result<reqwest::Response, reqwest::Error>>) -> Option<String> {
get_error_status_base(should_retry, error_for_status).map(|e| e.to_string())
}

#[cfg(feature = "page_error_status_details")]
#[cfg(all(feature = "page_error_status_details", not(feature = "decentralized")))]
/// Get the error status of the page.
fn get_error_status(should_retry: &mut bool, error_for_status: Option<Result<reqwest::Response, reqwest::Error>> ) -> Option<std::sync::Arc<reqwest::Error>> {
get_error_status_base(should_retry, error_for_status).map(std::sync::Arc::new)
Expand Down
2 changes: 1 addition & 1 deletion spider_chrome/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_chrome"
version = "2.24.10"
version = "2.24.11"
rust-version = "1.70"
authors = [
"j-mendez <jeff@spider.cloud>"
Expand Down
2 changes: 1 addition & 1 deletion spider_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_cli"
version = "2.24.10"
version = "2.24.11"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_transformations/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_transformations"
version = "2.24.10"
version = "2.24.11"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_utils"
version = "2.24.10"
version = "2.24.11"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down
2 changes: 1 addition & 1 deletion spider_worker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider_worker"
version = "2.24.10"
version = "2.24.11"
authors = [
"j-mendez <jeff@spider.cloud>"
]
Expand Down

0 comments on commit 77ec77e

Please sign in to comment.