mirror of
https://github.com/actix/actix-web.git
synced 2025-01-21 22:48:07 +00:00
fix service availability check
This commit is contained in:
parent
d50829d956
commit
2764323580
2 changed files with 3 additions and 3 deletions
|
@ -37,5 +37,5 @@ impl Message for StopServer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Socket id token
|
/// Socket id token
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub(crate) struct Token(usize);
|
pub(crate) struct Token(usize);
|
||||||
|
|
|
@ -20,7 +20,7 @@ use super::accept::AcceptNotify;
|
||||||
use super::services::{BoxedServerService, InternalServerServiceFactory, ServerMessage};
|
use super::services::{BoxedServerService, InternalServerServiceFactory, ServerMessage};
|
||||||
use super::Token;
|
use super::Token;
|
||||||
|
|
||||||
#[derive(Message)]
|
#[derive(Debug, Message)]
|
||||||
pub(crate) struct Conn {
|
pub(crate) struct Conn {
|
||||||
pub io: net::TcpStream,
|
pub io: net::TcpStream,
|
||||||
pub handler: Token,
|
pub handler: Token,
|
||||||
|
@ -148,7 +148,7 @@ impl Worker {
|
||||||
}).and_then(|services, act, ctx| {
|
}).and_then(|services, act, ctx| {
|
||||||
act.services.extend(services);
|
act.services.extend(services);
|
||||||
let mut readiness = CheckReadiness {
|
let mut readiness = CheckReadiness {
|
||||||
avail: true,
|
avail: false,
|
||||||
idx: 0,
|
idx: 0,
|
||||||
fut: None,
|
fut: None,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue