diff --git a/.env.bak b/.env.bak new file mode 100644 index 0000000..09d987a --- /dev/null +++ b/.env.bak @@ -0,0 +1,14 @@ +# INFRA +MONGO_URL=mongodb://127.0.0.1:27017 +REDIS_URL=redis://localhost:6379 + +# API_KEYS +BUNGEE_API_KEY= +COVALENT_API_KEY= +COINGECKO_API_KEY= + +# RPC_URLS +ETHEREUM_RPC_URL=https://rpc.ankr.com/eth +ARBITRUM_RPC_URL=https://arbitrum.llamarpc.com +OPTIMISM_RPC_URL=https://mainnet.optimism.io +BASE_RPC_URL=https://mainnet.base.org diff --git a/bin/reflux/src/main.rs b/bin/reflux/src/main.rs index e144966..6dfedb5 100644 --- a/bin/reflux/src/main.rs +++ b/bin/reflux/src/main.rs @@ -36,7 +36,9 @@ struct Args { #[tokio::main] async fn main() { - dotenv().expect("Failed to read .env"); + if let Err(e) = dotenv() { + error!("Failed to load .env file: {}", e); + } simple_logger::SimpleLogger::new().env().init().unwrap(); let mut args = Args::parse(); @@ -226,4 +228,4 @@ async fn run_indexer(config: Arc) { Ok(_) => info!("Indexer Job Completed"), Err(e) => error!("Indexer Job Failed: {}", e), }; -} +} \ No newline at end of file