mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 19:12:56 +01:00
fix service availability check
This commit is contained in:
parent
d50829d956
commit
2764323580
@ -37,5 +37,5 @@ impl Message for StopServer {
|
||||
}
|
||||
|
||||
/// Socket id token
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub(crate) struct Token(usize);
|
||||
|
@ -20,7 +20,7 @@ use super::accept::AcceptNotify;
|
||||
use super::services::{BoxedServerService, InternalServerServiceFactory, ServerMessage};
|
||||
use super::Token;
|
||||
|
||||
#[derive(Message)]
|
||||
#[derive(Debug, Message)]
|
||||
pub(crate) struct Conn {
|
||||
pub io: net::TcpStream,
|
||||
pub handler: Token,
|
||||
@ -148,7 +148,7 @@ impl Worker {
|
||||
}).and_then(|services, act, ctx| {
|
||||
act.services.extend(services);
|
||||
let mut readiness = CheckReadiness {
|
||||
avail: true,
|
||||
avail: false,
|
||||
idx: 0,
|
||||
fut: None,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user