From c1cc3ab7b44f36f399dc985e8011c0dcb5ad3867 Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Wed, 4 Dec 2024 18:04:31 +0000 Subject: [PATCH] feat(csi-driver): use tokio_stream unixlistenerstream Signed-off-by: Abhinandan Purkait --- control-plane/csi-driver/src/bin/controller/server.rs | 3 ++- control-plane/csi-driver/src/bin/node/main_.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/control-plane/csi-driver/src/bin/controller/server.rs b/control-plane/csi-driver/src/bin/controller/server.rs index a16203200..4f469ba8d 100644 --- a/control-plane/csi-driver/src/bin/controller/server.rs +++ b/control-plane/csi-driver/src/bin/controller/server.rs @@ -3,7 +3,8 @@ use rpc::csi::{controller_server::ControllerServer, identity_server::IdentitySer use std::{fs, io::ErrorKind, ops::Add}; use tokio::net::UnixListener; -use tonic::{codegen::tokio_stream::wrappers::UnixListenerStream, transport::Server}; +use tokio_stream::wrappers::UnixListenerStream; +use tonic::transport::Server; use tracing::{debug, error, info}; pub(super) struct CsiServer {} diff --git a/control-plane/csi-driver/src/bin/node/main_.rs b/control-plane/csi-driver/src/bin/node/main_.rs index 4cc21e348..d5ac5f3c1 100644 --- a/control-plane/csi-driver/src/bin/node/main_.rs +++ b/control-plane/csi-driver/src/bin/node/main_.rs @@ -32,7 +32,8 @@ use std::{ str::FromStr, }; use tokio::net::UnixListener; -use tonic::{codegen::tokio_stream::wrappers::UnixListenerStream, transport::Server}; +use tokio_stream::wrappers::UnixListenerStream; +use tonic::transport::Server; use tracing::{debug, error, info}; const GRPC_PORT: u16 = 50051;