Skip to content

Commit 8567a52

Browse files
Use named placeholders in discovery.rs
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent ff4e092 commit 8567a52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/operator-binary/src/discovery.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ fn build_listener_connection_string(
126126
.and_then(|s| s.ingress_addresses?.into_iter().next())
127127
.context(RoleListenerHasNoAddressSnafu { role })?;
128128
let mut conn_str = format!(
129-
"thrift://{}:{}",
130-
listener_address.address,
131-
listener_address
129+
"thrift://{address}:{port}",
130+
address = listener_address.address,
131+
port = listener_address
132132
.ports
133133
.get(HIVE_PORT_NAME)
134134
.copied()

0 commit comments

Comments
 (0)