Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
sharma-shray authored Dec 23, 2024
1 parent 0b5857f commit 646cb8e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/components/validation/runner/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ impl VectorService for EventForwardService {
.map(Event::from)
.collect();

self.tx
.send(events)
.await
.expect("event forward rx should not close first");
if let Err(e) = self.tx.send(events).await {
return Err(Status::internal(format!("Failed to forward events: {}", e)));
}

Ok(tonic::Response::new(PushEventsResponse {}))
}
Expand All @@ -70,10 +69,7 @@ impl VectorService for EventForwardService {
}
}

pub struct InputEdge {
#[allow(dead_code)]
client: VectorClient<Channel>,
}
pub struct InputEdge {}

pub struct OutputEdge {
listen_addr: GrpcAddress,
Expand Down Expand Up @@ -109,6 +105,7 @@ impl InputEdge {

if let Err(e) = client.push_events(request).await {
error!(error = ?e, "Failed to send input event to controlled input edge.");
continue; // Retry the next event or decide how to handle failure
}
}

Expand Down

0 comments on commit 646cb8e

Please sign in to comment.