Skip to content

Commit

Permalink
Remove localhost url to prevent error: Can't combine fixed host and m…
Browse files Browse the repository at this point in the history
…ultihost URL formats
  • Loading branch information
mateuszkj committed Jul 7, 2023
1 parent 5208745 commit 1dad65e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,8 @@ impl TmpPostgrustFactory {
stdout_reader: Some(stdout_reader),
stderr_reader: Some(stderr_reader),
connection_string: format!(
"postgresql://{}@{}:{}/{}?host={}",
"postgresql://{}@:{}/{}?host={}",
dbuser,
"localhost",
port,
dbname,
self.socket_dir.path().to_str().unwrap()
Expand Down Expand Up @@ -314,9 +313,8 @@ impl TmpPostgrustFactory {
stdout_reader: Some(stdout_reader),
stderr_reader: Some(stderr_reader),
connection_string: format!(
"postgresql://{}@{}:{}/{}?host={}",
"postgresql://{}@:{}/{}?host={}",
dbuser,
"localhost",
port,
dbname,
self.socket_dir.path().to_str().unwrap()
Expand Down

0 comments on commit 1dad65e

Please sign in to comment.