From a44805ae1727f4b8d4372284798d98ef21f15b36 Mon Sep 17 00:00:00 2001 From: Nikolay Komarevskiy Date: Tue, 25 Jun 2024 15:50:33 +0200 Subject: [PATCH] remove: error.rs --- .../api_nodes_dynamic_routing/error.rs | 34 ------------------- .../api_nodes_dynamic_routing/mod.rs | 1 - 2 files changed, 35 deletions(-) delete mode 100644 ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/error.rs diff --git a/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/error.rs b/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/error.rs deleted file mode 100644 index 14b27b855..000000000 --- a/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/error.rs +++ /dev/null @@ -1,34 +0,0 @@ -// use thiserror::Error; -// use url::ParseError; - -// /// An error that occurred when using the agent. -// #[derive(Error, Debug)] -// pub enum DynamicRouteProviderError { -// #[error("Error during: {0}")] -// ApiNodeHealthCheckError(String), // /// URL of the API Boundary Node is invalid -// // #[error("Invalid API Boundary Node URL: {0}")] -// // InvalidApiNodeUrl(String), -// } - -// // /// An error that occurred when using the agent. -// // #[derive(Error, Debug)] -// // pub enum HealthCheckFailureCause { -// // #[error("Invalid URL of the API Boundary Node")] -// // InvalidApiNodeUrl(String), -// // #[error("Health check responded with unexpected status code")] -// // UnexpectedStatusCode, -// // #[error("Unexpected error occurred: {0}")] -// // Other(String), -// // } - -// impl From for DynamicRouteProviderError { -// fn from(value: ParseError) -> Self { -// todo!() -// } -// } - -// impl From for DynamicRouteProviderError { -// fn from(value: reqwest::Error) -> Self { -// todo!() -// } -// } diff --git a/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/mod.rs b/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/mod.rs index 7bd0a69a0..42dc4e082 100644 --- a/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/mod.rs +++ b/ic-agent/src/agent/http_transport/api_nodes_dynamic_routing/mod.rs @@ -1,5 +1,4 @@ pub mod dynamic_route_provider; -pub mod error; pub mod health_check; pub mod messages; pub mod node;