Skip to content

Commit

Permalink
Remove unnecessary clone when building utilization task
Browse files Browse the repository at this point in the history
Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
  • Loading branch information
esensar and pront authored Jan 10, 2025
1 parent 59b7d19 commit 416e1cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/topology/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ impl<'a> Builder<'a> {
}

async fn build_sinks(&mut self, enrichment_tables: &vector_lib::enrichment::TableRegistry) {
let utilization_sender = self.utilization_emitter.get_sender();
for (key, sink) in self
.config
.sinks()
Expand Down Expand Up @@ -592,7 +591,7 @@ impl<'a> Builder<'a> {

self.utilization_emitter
.add_component(key.clone(), gauge!("utilization"));
let utilization_sender = utilization_sender.clone();
let utilization_sender = self.utilization_emitter.get_sender();
let component_key = key.clone();
let sink = async move {
debug!("Sink starting.");
Expand Down

0 comments on commit 416e1cf

Please sign in to comment.