Skip to content

Commit

Permalink
Remove redundant &input refs in visit_stream_node_cont methods fo…
Browse files Browse the repository at this point in the history
…r clean function calls.

Signed-off-by: Shanicky Chen <[email protected]>
  • Loading branch information
shanicky committed Aug 7, 2024
1 parent 2286647 commit 13b9c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meta/src/manager/catalog/fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ impl FragmentManager {
visit_stream_node_cont(actor.nodes.as_ref().unwrap(), |node| {
if let Some(NodeBody::Union(_)) = node.node_body {
for input in &node.input {
if !union_input_is_clean(&all_fragment_ids, &input) {
if !union_input_is_clean(&all_fragment_ids, input) {
dirty_downstream_table_ids
.insert(*table_id, fragment.fragment_id);
return false;
Expand Down Expand Up @@ -782,7 +782,7 @@ impl FragmentManager {
visit_stream_node_cont_mut(actor.nodes.as_mut().unwrap(), |node| {
if let Some(NodeBody::Union(_)) = node.node_body {
node.input
.retain_mut(|input| union_input_is_clean(&all_fragment_ids, &input));
.retain_mut(|input| union_input_is_clean(&all_fragment_ids, input));
}
true
})
Expand Down

0 comments on commit 13b9c9d

Please sign in to comment.