Skip to content

Commit 01a7329

Browse files
committed
Better comments
1 parent 84e187e commit 01a7329

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/operator-binary/src/discovery.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub async fn build_discovery_configmaps(
9090
/// Build a discovery [`ConfigMap`] containing information about how to connect to a certain
9191
/// [`v1alpha1::HiveCluster`].
9292
///
93-
/// Data is coming from the [`Listener`] objects. Connection string is only build by [`build_listener_connection_string`]
93+
/// Data is coming from the [`Listener`] objects. Connection string is only build by [`build_listener_connection_string`].
9494
fn build_discovery_configmap(
9595
name: &str,
9696
owner: &impl Resource<DynamicType = ()>,
@@ -140,7 +140,7 @@ fn build_listener_connection_string(
140140
rolegroup: &String,
141141
chroot: Option<&str>,
142142
) -> Result<String, Error> {
143-
// We'd need only the first address corresponding to the rolegroup
143+
// We only need the first address corresponding to the rolegroup
144144
let listener_address = listener_ref
145145
.status
146146
.and_then(|s| s.ingress_addresses?.into_iter().next())

0 commit comments

Comments
 (0)