WIP: ws: split into features, other fixes

This commit is contained in:
Joakim Frostegård 2021-11-05 13:18:22 +01:00
parent 465cf5920d
commit 2bed6ccdc5
10 changed files with 76 additions and 25 deletions

View file

@ -2,6 +2,8 @@ use std::sync::Arc;
use aquatic_common::access_list::AccessListArcSwap;
pub type TlsConfig = futures_rustls::rustls::ServerConfig;
#[derive(Default, Clone)]
pub struct State {
pub access_list: Arc<AccessListArcSwap>,

View file

@ -11,9 +11,8 @@ use std::{
use crate::config::Config;
use aquatic_common::privileges::drop_privileges_after_socket_binding;
use self::common::State;
use self::common::*;
use super::common::TlsConfig;
use glommio::{channels::channel_mesh::MeshBuilder, prelude::*};
const SHARED_CHANNEL_SIZE: usize = 1024;

View file

@ -29,7 +29,7 @@ use crate::config::Config;
use crate::common::*;
use super::common::State;
use super::common::*;
struct PendingScrapeResponse {
pending_worker_out_messages: usize,