Skip to content

Commit

Permalink
Remove the now unused db_uri variable on the exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Dec 9, 2023
1 parent ecd3616 commit 0243a12
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions integration_tests/src/setup_utils/rita.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ pub fn spawn_rita_exit(
resettings.exit_network.exit_price = exit_fee;
let veth_exit_to_native = format!("vout-{}-o", ns);
resettings.network.external_nic = Some(veth_exit_to_native);
// each exit instance connects to one database in the default net namespace
resettings.db_uri = "postgresql://[email protected]/test".to_string();

// mirrored from rita_bin/src/exit.rs
let resettings = clu::exit_init(resettings);
Expand Down
1 change: 0 additions & 1 deletion integration_tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ pub fn get_default_settings(
) -> (RitaClientSettings, RitaExitSettingsStruct) {
let mut exit_servers = HashMap::new();
let mut exit = RitaExitSettingsStruct {
db_uri: "postgres://postgres@localhost/test".to_string(),
client_registration_url: "https://7.7.7.1:40400/register_router".to_string(),
workers: 2,
remote_log: false,
Expand Down
3 changes: 0 additions & 3 deletions settings/src/exit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ pub struct EmailVerifSettings {
/// This is the main settings struct for rita_exit
#[derive(Debug, Serialize, Deserialize, Clone, Eq, PartialEq)]
pub struct RitaExitSettingsStruct {
/// starts with file:// or postgres://username:password@localhost/diesel_demo
pub db_uri: String,
/// url exit uses to request a clients registration
#[serde(default = "default_reg_url")]
pub client_registration_url: String,
Expand Down Expand Up @@ -186,7 +184,6 @@ impl RitaExitSettingsStruct {
/// default trait to prevent some future code from picking up on the 'default' implementation
pub fn test_default() -> Self {
RitaExitSettingsStruct {
db_uri: "".to_string(),
client_registration_url: "".to_string(),
workers: 1,
remote_log: false,
Expand Down

0 comments on commit 0243a12

Please sign in to comment.