Skip to content

Commit e28d64e

Browse files
committed
Add a comment in DeepMerge impl
1 parent 9f5019b commit e28d64e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/stackable-operator/src/crd/listener/listeners/v1alpha1_impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ impl DeepMerge for ListenerSpec {
3131
merge_strategies::list::map(
3232
&mut self.ports,
3333
other.ports,
34+
// The unique thing identifying a port is it's name
3435
&[|lhs, rhs| lhs.name == rhs.name],
3536
|current_item, other_item| {
3637
DeepMerge::merge_from(current_item, other_item);
@@ -49,6 +50,7 @@ impl DeepMerge for ListenerStatus {
4950
merge_strategies::list::map(
5051
&mut self.ingress_addresses,
5152
other.ingress_addresses,
53+
// The unique thing identifying an ingress address is it's address
5254
&[|lhs, rhs| lhs.address == rhs.address],
5355
|current_item, other_item| {
5456
DeepMerge::merge_from(current_item, other_item);

0 commit comments

Comments
 (0)