1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

move server to separate crate

This commit is contained in:
Nikolay Kim
2018-12-09 22:14:29 -08:00
parent ffb07c8884
commit 8ad93f4838
21 changed files with 308 additions and 149 deletions

View File

@ -2,4 +2,4 @@
## [0.1.0] - 2018-12-09
* Move codec to separate crate
* Initial release

View File

@ -1,7 +1,3 @@
#![allow(
clippy::borrow_interior_mutable_const,
clippy::declare_interior_mutable_const
)]
use std::cell::{Cell, RefCell};
use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
@ -21,7 +17,7 @@ thread_local!(
static Q: RefCell<Vec<Box<Future<Item = (), Error = ()>>>> = RefCell::new(Vec::new());
);
pub(crate) const COUNT: AtomicUsize = AtomicUsize::new(0);
pub(crate) static COUNT: AtomicUsize = AtomicUsize::new(0);
pub(crate) enum ArbiterCommand {
Stop,