Skip to content

Commit

Permalink
Add .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed May 1, 2024
1 parent 6d84e4a commit 9c8a66c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ tmp/
# Vim tmp files
*.swp
rusty-tags.vi

# Environment variables
.env
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ simple_logger = "5.0.0"
redis = { version = "0.25.3", features = [ "aio", "tokio-comp" ] }
serde = { version = "1.0.199", features = [ "derive" ] }
serde_json = "1.0.116"
dotenv = "0.15.0"
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ struct EventContext {

#[tokio::main]
async fn main() {
dotenv::dotenv().ok();
simple_logger::SimpleLogger::new()
.with_level(log::LevelFilter::Info)
.with_module_level("inindexer::performance", log::LevelFilter::Debug)
Expand Down

0 comments on commit 9c8a66c

Please sign in to comment.