[router][grpc] Support parallel queue puts in grpc_request_manager and remove mutex for grpc_client (#11798)

This commit is contained in:
Chang Su
2025-10-17 20:49:43 -07:00
committed by GitHub
parent 6c7c92eb02
commit ca240eefb4
4 changed files with 30 additions and 27 deletions

View File

@@ -104,7 +104,7 @@ impl BasicWorkerBuilder {
Arc,
};
use tokio::sync::{Mutex, RwLock};
use tokio::sync::RwLock;
let bootstrap_host = match url::Url::parse(&self.url) {
Ok(parsed) => parsed.host_str().unwrap_or("localhost").to_string(),
@@ -145,9 +145,7 @@ impl BasicWorkerBuilder {
bootstrap_port,
};
let grpc_client = Arc::new(RwLock::new(
self.grpc_client.map(|client| Arc::new(Mutex::new(client))),
));
let grpc_client = Arc::new(RwLock::new(self.grpc_client.map(Arc::new)));
BasicWorker {
metadata,