Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanda committed Apr 9, 2024
1 parent fbb8bb7 commit a3127c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust-arroyo/src/backends/kafka/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ mod errors;
pub mod producer;
pub mod types;


#[derive(Eq, Hash, PartialEq)]
enum KafkaConsumerState {
Consuming,
Expand Down Expand Up @@ -246,10 +245,12 @@ impl<C: AssignmentCallbacks> ConsumerContext for CustomContext<C> {
// it would be better to log it only when it changes. We log for debugging purposes.
unsafe {
let member_id = rd_kafka_memberid(base_consumer.client().native_ptr());
tracing::info!("Kafka consumer member id: {:?}", std::ffi::CStr::from_ptr(member_id).to_str().unwrap());
tracing::info!(
"Kafka consumer member id: {:?}",
std::ffi::CStr::from_ptr(member_id).to_str().unwrap()
);
};


for partition in committed_offsets.elements() {
let raw_offset = partition.offset().to_raw().unwrap();

Expand Down Expand Up @@ -515,7 +516,6 @@ mod tests {
impl AssignmentCallbacks for EmptyCallbacks {
fn on_assign(&self, partitions: HashMap<Partition, u64>) {
println!("assignment event: {:?}", partitions);

}
fn on_revoke<C>(&self, _: C, partitions: Vec<Partition>) {
println!("revocation event: {:?}", partitions);
Expand Down

0 comments on commit a3127c6

Please sign in to comment.