File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl Config {
7777
7878 if let Some ( path) = filename {
7979 let mut config_content = std:: fs:: read_to_string ( path)
80- . map_err ( |e| format ! ( "Failed to read config file: {}" , e) ) ?;
80+ . map_err ( |e| format ! ( "Failed to read config file: {}" , e) ) ?;
8181 config_content = Self :: substitute_env_vars ( config_content) ?;
8282 figment_config = figment_config. merge ( Toml :: string ( & config_content) ) ;
8383 }
Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ pub async fn run() -> anyhow::Result<()> {
129129 // Load the json-rpc service configuration, which is a combination of the
130130 // general configuration options for any indexer service and specific
131131 // options added for JSON-RPC
132- let config =
133- MainConfig :: parse ( indexer_config :: ConfigPrefix :: Service , cli . config . as_ref ( ) ) . map_err ( |e| {
132+ let config = MainConfig :: parse ( indexer_config :: ConfigPrefix :: Service , cli . config . as_ref ( ) )
133+ . map_err ( |e| {
134134 error ! (
135135 "Invalid configuration file `{}`: {}, if a value is missing you can also use \
136136 --config to fill the rest of the values",
Original file line number Diff line number Diff line change 44use clap:: Parser ;
55use indexer_config:: { Config as IndexerConfig , ConfigPrefix } ;
66use reqwest:: Url ;
7- use tracing:: error;
87use std:: path:: PathBuf ;
98use std:: { collections:: HashMap , str:: FromStr } ;
9+ use tracing:: error;
1010
1111use anyhow:: Result ;
1212use thegraph_core:: { Address , DeploymentId } ;
@@ -183,15 +183,15 @@ impl Config {
183183 pub fn from_cli ( ) -> Result < Self > {
184184 let cli = Cli :: parse ( ) ;
185185 let indexer_config =
186- IndexerConfig :: parse ( ConfigPrefix :: Tap , cli. config . as_ref ( ) ) . map_err ( |e| {
187- error ! (
188- "Invalid configuration file `{}`: {}, if a value is missing you can also use \
186+ IndexerConfig :: parse ( ConfigPrefix :: Tap , cli. config . as_ref ( ) ) . map_err ( |e| {
187+ error ! (
188+ "Invalid configuration file `{}`: {}, if a value is missing you can also use \
189189 --config to fill the rest of the values",
190- cli. config. unwrap_or_default( ) . display( ) ,
191- e
192- ) ;
193- anyhow:: anyhow!( e)
194- } ) ?;
190+ cli. config. unwrap_or_default( ) . display( ) ,
191+ e
192+ ) ;
193+ anyhow:: anyhow!( e)
194+ } ) ?;
195195 let config: Config = indexer_config. into ( ) ;
196196
197197 // Enables tracing under RUST_LOG variable
You can’t perform that action at this time.
0 commit comments