From 0216989438f5bd3cca90b8b4e8c191ef3b121955 Mon Sep 17 00:00:00 2001 From: "[Clippy]" Date: Mon, 9 Sep 2024 15:15:02 +0000 Subject: [PATCH] Commit from GitHub Actions () --- uwusched-nodes/src/compute.rs | 4 ++-- uwusched-nodes/src/grpc/mod.rs | 2 +- uwusched-nodes/src/head.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/uwusched-nodes/src/compute.rs b/uwusched-nodes/src/compute.rs index 955a722..696110d 100644 --- a/uwusched-nodes/src/compute.rs +++ b/uwusched-nodes/src/compute.rs @@ -1,4 +1,4 @@ -use std::{net::SocketAddr, thread}; +use std::net::SocketAddr; mod grpc; mod config; @@ -17,7 +17,7 @@ async fn main() -> Result<(), Box> { let url: SocketAddr = "[::1]:50051".parse()?; // let mut data_client = sched::data_client::DataClient::connect(url.clone()).await?; // let mut auth_client = sched::auth_client::AuthClient::connect(url.clone()).await?; - alive_check_serve(url.clone()).await?; + alive_check_serve(url).await?; Ok(()) } diff --git a/uwusched-nodes/src/grpc/mod.rs b/uwusched-nodes/src/grpc/mod.rs index d5753e7..3fb5132 100644 --- a/uwusched-nodes/src/grpc/mod.rs +++ b/uwusched-nodes/src/grpc/mod.rs @@ -1,5 +1,5 @@ use crate::sched::{ - alive_check_client::{self, AliveCheckClient}, + alive_check_client::{AliveCheckClient}, alive_check_server, auth_server, data_server, AliveCheckRequest, AliveCheckResponse, DataRequest, DataResponse, LoginRequest, LoginResponse, }; diff --git a/uwusched-nodes/src/head.rs b/uwusched-nodes/src/head.rs index 0115547..de91d8e 100644 --- a/uwusched-nodes/src/head.rs +++ b/uwusched-nodes/src/head.rs @@ -7,7 +7,7 @@ use log::{debug, info}; use tonic::transport::Server; // Import generated protobuf mod sched { - use prost_types::FileDescriptorSet; + tonic::include_proto!("sched");