Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Vigith Maurice <[email protected]>
  • Loading branch information
vigith committed Sep 27, 2024
1 parent a561dae commit 59b12eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ where
mut sink_stream: Streaming<sink_pb::SinkRequest>,
grpc_resp_tx: mpsc::Sender<Result<SinkResponse, Status>>,
) -> Result<(), Error> {

// loop until the global stream has been shutdown.
loop {
// for every batch, we need to read from the stream. The end-of-batch is
Expand All @@ -241,7 +240,7 @@ where
&mut sink_stream,
grpc_resp_tx.clone(),
)
.await?;
.await?;

if stream_ended {
// shutting down, hence exiting the loop
Expand Down

0 comments on commit 59b12eb

Please sign in to comment.