Skip to content

Commit

Permalink
Merge pull request #27 from bcnmy/dev
Browse files Browse the repository at this point in the history
Synchronise Develop.
  • Loading branch information
ankurdubey521 authored Jul 15, 2024
2 parents b92a6b4 + 53a3166 commit de0fa2d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .env.bak
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions bin/reflux/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -226,4 +228,4 @@ async fn run_indexer(config: Arc<Config>) {
Ok(_) => info!("Indexer Job Completed"),
Err(e) => error!("Indexer Job Failed: {}", e),
};
}
}

0 comments on commit de0fa2d

Please sign in to comment.