Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/vector-core/src/fanout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl Fanout {
// `SendGroup`, since it has exclusive access to the senders.
match maybe_msg {
Some(ControlMessage::Add(id, sink)) => {
send_group.add(id, sink);
send_group.add(&id, sink);
},
Some(ControlMessage::Remove(id)) => {
send_group.remove(&id);
Expand Down Expand Up @@ -376,8 +376,7 @@ impl<'a> SendGroup<'a> {
}
}

#[allow(clippy::needless_pass_by_value)]
fn add(&mut self, id: ComponentKey, sink: BufferSender<EventArray>) {
fn add(&mut self, id: &ComponentKey, sink: BufferSender<EventArray>) {
// When we're in the middle of a send, we can only keep track of the new sink, but can't
// actually send to it, as we don't have the item to send... so only add it to `senders`.
assert!(
Expand Down
Loading