Skip to content

Commit

Permalink
Upgrade rdkafka to 0.11.4 (rustrdkafka to 0.16.0) (#436)
Browse files Browse the repository at this point in the history
* Upgrade rdkafka to 0.11.4 (rustrdkafka to 0.16.0)
  • Loading branch information
dparton authored May 22, 2018
1 parent 12520e9 commit ed4339e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ openssl-probe = "0.1"
protobuf = "1.4"
quantiles = { version = "0.7", features = ["serde_support"] }
rand = "0.4"
rdkafka = "0.14.0"
rdkafka = "0.16.0"
regex = "0.2"
rusoto_core = "0.30"
rusoto_firehose = "0.30"
Expand Down
6 changes: 3 additions & 3 deletions src/sink/kafka.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Kafka sink for Raw events.
use futures::future::Future;
use metric;
use rdkafka::client::Context;
use rdkafka::client::ClientContext;
use rdkafka::config::{ClientConfig, RDKafkaLogLevel};
use rdkafka::error::{KafkaError, RDKafkaError};
use rdkafka::message::{Message, OwnedMessage};
Expand Down Expand Up @@ -33,7 +33,7 @@ impl STFUContext {
}
}

impl Context for STFUContext {
impl ClientContext for STFUContext {
/// Receives log lines from librdkafka.
fn log(&self, level: RDKafkaLogLevel, fac: &str, log_message: &str) {
if !self.should_emit_message(log_message) {
Expand Down Expand Up @@ -673,7 +673,7 @@ mod tests {
let producer = RetryOnceMockKafkaSender {
call_count: Arc::new(RwLock::new(0)),
send_entries: Arc::new(RwLock::new(Vec::new())),
error_type: KafkaError::FutureCanceled,
error_type: KafkaError::NoMessageReceived,
fail_retry: true,
};
let mut k = Kafka {
Expand Down

0 comments on commit ed4339e

Please sign in to comment.