Skip to content

Commit

Permalink
Merge branch 'main' into redis_pubsub
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Aug 3, 2022
2 parents 341acfd + 090bd46 commit 9825690
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions shotover-proxy/src/transforms/cassandra/sink_single.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::time::Duration;
use tokio::sync::{mpsc, oneshot};
use tokio::time::timeout;
use tokio_stream::StreamExt;
use tracing::{info, trace};
use tracing::{error, trace};

#[derive(Deserialize, Debug, Clone)]
pub struct CassandraSinkSingleConfig {
Expand Down Expand Up @@ -130,23 +130,18 @@ impl CassandraSinkSingle {
mut original,
response: Err(err),
} => {
// TODO: This is wrong: need to have a response for each incoming message
original.set_error(err.to_string());
responses.push(original);
}
};
}
Ok(None) => break,
Err(_) => {
info!(
"timed out waiting for results got - {:?} expected - {:?}",
error!(
"timed out waiting for responses, received {:?} responses but expected {:?} responses",
responses.len(),
expected_size
);
info!(
"timed out waiting for results - {:?} - {:?}",
responses, results
);
}
}
}
Expand Down

0 comments on commit 9825690

Please sign in to comment.