Skip to content

Commit

Permalink
style: removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjiang2378 committed Sep 2, 2024
1 parent 549026b commit 2d1213f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions hydro_deploy/core/src/kubernetes/launched_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use std::sync::Arc;

use async_channel::{Receiver, Sender};
use async_trait::async_trait;
use futures::io::BufReader;
use futures::{AsyncBufReadExt, StreamExt, TryStreamExt};
use futures::{StreamExt, TryStreamExt};
use kube::api::AttachedProcess;
use tokio::sync::RwLock;

Expand Down
4 changes: 0 additions & 4 deletions hydro_deploy/core/src/kubernetes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ use anyhow::Result;
use async_trait::async_trait;
use hydroflow_cli_integration::ServerBindConfig;
use tokio::sync::RwLock;
use std::fs::Metadata;

use super::{
ClientStrategy, Host, HostTargetType, LaunchedBinary, LaunchedHost, ResourceBatch,
ResourceResult, ServerStrategy,
};

use futures::{StreamExt, TryStreamExt};
use std::io::Write;
use k8s_openapi::api::core::v1::Pod;
use kube::{
api::{Api, AttachParams, ListParams, PostParams, ResourceExt, WatchEvent, WatchParams},
Client,
};
use std::time::Duration;
use tokio::time::sleep;

use tokio::io::AsyncWriteExt;
use nanoid::nanoid;
Expand Down
8 changes: 1 addition & 7 deletions hydroflow/src/util/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

use std::cell::RefCell;
use std::collections::HashMap;
use std::io::Write;
use std::fs::File;
use std::fs::OpenOptions;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};


pub use hydroflow_deploy_integration::*;
use serde::de::DeserializeOwned;
Expand Down Expand Up @@ -70,10 +65,9 @@ impl<T> DeployPorts<T> {
pub async fn init_no_ack_start<T: DeserializeOwned + Default>() -> DeployPorts<T> {
let mut input = String::new();
std::io::stdin().read_line(&mut input).unwrap();
let mut trimmed = input.trim();
let trimmed = input.trim();

let bind_config = serde_json::from_str::<InitConfig>(trimmed).unwrap();
// println!("{:?}", bind_config);

// config telling other services how to connect to me
let mut bind_results: HashMap<String, ServerPort> = HashMap::new();
Expand Down

0 comments on commit 2d1213f

Please sign in to comment.