Merge pull request #1297 from nymtech/fix/dotenv

Allow .env not to be present
This commit is contained in:
Tommy Verrall
2022-05-31 17:05:54 +01:00
committed by GitHub
+1 -1
View File
@@ -590,7 +590,7 @@ async fn run_validator_api(matches: ArgMatches<'static>) -> Result<()> {
async fn main() -> Result<()> {
println!("Starting validator api...");
dotenv::dotenv()?;
dotenv::dotenv();
cfg_if::cfg_if! {if #[cfg(feature = "console-subscriber")] {
// instriment tokio console subscriber needs RUSTFLAGS="--cfg tokio_unstable" at build time