Skip to content

Commit 67ffb2a

Browse files
committed
Postgres fallback port resolution fix
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 1c0ab4a commit 67ffb2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/factor-outbound-pg/src

crates/factor-outbound-pg/src/host.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<CF: ClientFactory> InstanceState<CF> {
6161
let port =
6262
ports
6363
.get(i)
64-
.or_else(|| if ports.len() == 1 { ports.get(1) } else { None });
64+
.or_else(|| if ports.len() == 1 { ports.get(0) } else { None });
6565
let port_str = port.map(|p| format!(":{p}")).unwrap_or_default();
6666
let url = format!("{address}{port_str}");
6767
if !self

0 commit comments

Comments
 (0)