Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezzfelipe committed Feb 3, 2025
1 parent 6991e20 commit f4e9c9c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/drivers/monitor/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use anyhow::Result;
use rdkafka::{
consumer::{CommitMode, Consumer, StreamConsumer},
ClientConfig, Message,
ClientConfig,
};
use regex::Regex;
use std::{borrow::Borrow, collections::HashMap, sync::Arc};
use tracing::{error, info, warn};

Expand All @@ -22,8 +21,6 @@ pub async fn subscribe(config: MonitorConfig, metrics: Arc<MetricsDriven>) -> Re
let consumer: StreamConsumer = client_config.create()?;
consumer.subscribe(&[&config.topic])?;

let source_regex = Regex::new(r"fabric-.+")?;

info!("Monitor subscribe running");
loop {
match consumer.recv().await {
Expand All @@ -32,9 +29,6 @@ pub async fn subscribe(config: MonitorConfig, metrics: Arc<MetricsDriven>) -> Re
let message = message.borrow();
match message.try_into() {
Ok(event) => {
let payload: serde_json::Value =
serde_json::from_slice(message.payload().unwrap())?;

let result = {
match &event {
Event::ProjectCreated(evt) => {
Expand Down

0 comments on commit f4e9c9c

Please sign in to comment.