diff --git a/service/src/config.rs b/service/src/config.rs index f70a738a..c131a4f6 100644 --- a/service/src/config.rs +++ b/service/src/config.rs @@ -7,7 +7,7 @@ use alloy_primitives::Address; use serde::{Deserialize, Serialize}; use toolshed::thegraph::DeploymentId; -use crate::{query_processor::QueryError, util::init_tracing}; +use crate::util::init_tracing; #[derive(Clone, Debug, Parser, Serialize, Deserialize, Default)] #[clap( @@ -312,20 +312,6 @@ impl Cli { } } -#[derive(Debug, thiserror::Error)] -pub enum ConfigError { - #[error("Validate the input: {0}")] - ValidateInput(String), - #[error("Generate JSON representation of the config file: {0}")] - GenerateJson(serde_json::Error), - #[error("QueryError: {0}")] - QueryError(QueryError), - #[error("Toml file error: {0}")] - ReadStr(std::io::Error), - #[error("Unknown error: {0}")] - Other(anyhow::Error), -} - #[derive( Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Serialize, Deserialize, Default, )]