mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-25 16:17:56 +01:00
Starting code update
This commit is contained in:
parent
5a94720c2b
commit
dad99eb5dc
1052
Cargo.lock
generated
1052
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -15,8 +15,7 @@ futures = { version = "0.3", features = ["thread-pool", "compat"] }
|
||||
futures-util = "0.3"
|
||||
futures-signals = "0.3"
|
||||
|
||||
async-std = "1.5"
|
||||
smol = "0.1"
|
||||
smol = "0.4"
|
||||
|
||||
signal-hook = { version = "0.1", features = ["tokio-support"] }
|
||||
|
||||
|
@ -4,7 +4,7 @@ pub mod gen {
|
||||
include!(concat!(env!("OUT_DIR"), "/schema/api_capnp.rs"));
|
||||
}
|
||||
|
||||
use async_std::net::TcpStream;
|
||||
use smol::net::TcpStream;
|
||||
use futures_util::FutureExt;
|
||||
|
||||
use slog::Logger;
|
||||
|
@ -1,6 +1,6 @@
|
||||
use slog::Logger;
|
||||
|
||||
use async_std::net::TcpStream;
|
||||
use smol::net::TcpStream;
|
||||
|
||||
use crate::error::Result;
|
||||
use crate::auth;
|
||||
|
@ -10,7 +10,7 @@ use toml;
|
||||
use crate::error::Result;
|
||||
use crate::config::Config;
|
||||
|
||||
use async_std::sync::{Arc, RwLock};
|
||||
use smol::lock::{Arc, RwLock};
|
||||
|
||||
use capnp::Error;
|
||||
|
||||
@ -86,10 +86,10 @@ impl MachinesProvider {
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Machines {
|
||||
inner: Arc<RwLock<MachinesProvider>>,
|
||||
inner: RwLock<MachinesProvider>,
|
||||
}
|
||||
impl Machines {
|
||||
pub fn new(inner: Arc<RwLock<MachinesProvider>>) -> Self {
|
||||
pub fn new(inner: RwLock<MachinesProvider>) -> Self {
|
||||
Self { inner }
|
||||
}
|
||||
}
|
||||
|
@ -24,8 +24,6 @@ use futures::compat::Stream01CompatExt;
|
||||
use futures::join;
|
||||
use futures::task::LocalSpawn;
|
||||
|
||||
use async_std::net::TcpListener;
|
||||
|
||||
use std::io;
|
||||
use std::io::Write;
|
||||
use std::path::PathBuf;
|
||||
|
Loading…
Reference in New Issue
Block a user