mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
WIP: ws: split into features, other fixes
This commit is contained in:
parent
465cf5920d
commit
2bed6ccdc5
10 changed files with 76 additions and 25 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue