Skip to content

Commit

Permalink
fix: CR
Browse files Browse the repository at this point in the history
  • Loading branch information
niebayes committed Dec 29, 2023
1 parent 521c53f commit 3bb7860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/log-store/src/kafka/client_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use rskafka::client::producer::{BatchProducer, BatchProducerBuilder};
use rskafka::client::{Client as RsKafkaClient, ClientBuilder};
use rskafka::BackoffConfig;
use snafu::ResultExt;
use tokio::sync::Mutex as TokioMutex;
use tokio::sync::Mutex;

use crate::error::{BuildClientSnafu, BuildPartitionClientSnafu, Result};

Expand Down Expand Up @@ -68,7 +68,7 @@ pub(crate) struct ClientManager {
client_factory: RsKafkaClient,
/// A pool maintaining a collection of clients.
/// Key: a topic. Value: the associated client of the topic.
client_pool: TokioMutex<HashMap<Topic, Client>>,
client_pool: Mutex<HashMap<Topic, Client>>,
}

impl ClientManager {
Expand All @@ -92,7 +92,7 @@ impl ClientManager {
Ok(Self {
config: config.clone(),
client_factory: client,
client_pool: TokioMutex::new(HashMap::new()),
client_pool: Mutex::new(HashMap::new()),
})
}

Expand Down

0 comments on commit 3bb7860

Please sign in to comment.