Skip to content

Commit

Permalink
feat(csi-driver): use tokio_stream unixlistenerstream
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinandan Purkait <[email protected]>
  • Loading branch information
Abhinandan-Purkait committed Dec 20, 2024
1 parent 204b91c commit c1cc3ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion control-plane/csi-driver/src/bin/controller/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down
3 changes: 2 additions & 1 deletion control-plane/csi-driver/src/bin/node/main_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c1cc3ab

Please sign in to comment.