Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rooooooooob committed Jul 14, 2024
1 parent 0997d28 commit 20938fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions indexer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct Cli {
pub enum DbConfig {
Postgres {
#[serde(default = "get_env_db_url")]
database_url: String
database_url: String,
},
}

Expand Down Expand Up @@ -89,8 +89,7 @@ fn get_env_db_url() -> String {
}

fn get_env_network() -> String {
std::env::var("NETWORK")
.expect("env NETWORK not found and config did not specify sink.network")
std::env::var("NETWORK").expect("env NETWORK not found and config did not specify sink.network")
}

#[allow(unreachable_patterns)]
Expand Down

0 comments on commit 20938fe

Please sign in to comment.