remove some unneeded stuff

axtloss/rework-partitioning
Amy 3 years ago
parent a70c763050
commit c017fcc516
No known key found for this signature in database
GPG Key ID: C642EA4B2F4096BE

@ -6,13 +6,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "2.33.0"
tokio = { version= "1", features = ["full"] }
tokio-stream = "0.1.6"
warp = "0.3"
serde = "*"
serde_derive = "*"
toml = "0.5"
serde_json = "1.0"
futures = { version = "0.3", default-features=false}
uuid = { version = "0.4", features = ["serde", "v4"] }

@ -1,17 +1,7 @@
mod mods;
use std::{collections::HashMap, convert::Infallible, sync::Arc, fs, fs::File, io::prelude::*, env};
use std::{collections::HashMap, convert::Infallible, sync::Arc, env};
use tokio::sync::{mpsc, Mutex};
use warp::{ws::Message, Filter, Rejection};
use toml;
use serde_derive::Deserialize;
#[derive(Deserialize)]
struct General {
websocket_ip: String,
websocket_port: String,
restore_conf: String,
}
#[derive(Debug, Clone)]
pub struct Client {

@ -5,8 +5,6 @@ use tokio_stream::wrappers::UnboundedReceiverStream;
use uuid::Uuid;
use warp::ws::{Message, WebSocket};
use toml;
pub async fn client_connection(ws: WebSocket, clients: Clients) {
println!("establishing client connection... {:?}", ws);

Loading…
Cancel
Save