Skip to content

Commit

Permalink
Change default port
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewDarnell committed Dec 6, 2023
1 parent ac7796c commit bf86ef0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ pub fn get_host() -> String {
return match std::env::var("RUBIC_HOST") {
Ok(v) => v,
Err(_) => {
debug("RUBIC_HOST not found in env vars! Defaulting...");
debug!("RUBIC_HOST not found in env vars! Defaulting...");
let default_host: String = "127.0.0.1".to_string();
debug("Using RUBIC_HOST: <127.0.0.1>");
debug!("Using RUBIC_HOST: <127.0.0.1>");
return default_host;
}
}
Expand All @@ -19,9 +19,9 @@ pub fn get_port() -> String {
return match std::env::var("RUBIC_PORT") {
Ok(v) => v,
Err(_) => {
debug("RUBIC_PORT not found in env vars! Defaulting...");
let default_port: String = "8080".to_string();
debug("Using RUBIC_PORT: <8080>");
debug!("RUBIC_PORT not found in env vars! Defaulting...");
let default_port: String = "3000".to_string();
debug!("Using RUBIC_PORT: <3000>");
return default_port;
}
}
Expand All @@ -40,9 +40,9 @@ pub fn get_min_peers() -> usize {
}
},
Err(_) => {
debug("RUBIC_MIN_PEERS not found in env vars! Defaulting...");
debug!("RUBIC_MIN_PEERS not found in env vars! Defaulting...");
let default_min_peers: usize = 3;
debug("Using RUBIC_MIN_PEERS: <3>");
debug!("Using RUBIC_MIN_PEERS: <3>");
return default_min_peers;
}
}
Expand Down

0 comments on commit bf86ef0

Please sign in to comment.