mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
use Recipient
This commit is contained in:
parent
4b8181476c
commit
a544034c06
@ -290,7 +290,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
|
|||||||
let signals = self.subscribe_to_signals();
|
let signals = self.subscribe_to_signals();
|
||||||
let addr: Addr<Syn, _> = Actor::start(self);
|
let addr: Addr<Syn, _> = Actor::start(self);
|
||||||
signals.map(|signals| signals.send(
|
signals.map(|signals| signals.send(
|
||||||
signal::Subscribe(addr.clone().subscriber())));
|
signal::Subscribe(addr.clone().recipient())));
|
||||||
addr
|
addr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -352,7 +352,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
|
|||||||
let signals = self.subscribe_to_signals();
|
let signals = self.subscribe_to_signals();
|
||||||
let addr: Addr<Syn, _> = Actor::start(self);
|
let addr: Addr<Syn, _> = Actor::start(self);
|
||||||
signals.map(|signals| signals.send(
|
signals.map(|signals| signals.send(
|
||||||
signal::Subscribe(addr.clone().subscriber())));
|
signal::Subscribe(addr.clone().recipient())));
|
||||||
Ok(addr)
|
Ok(addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -396,7 +396,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
|
|||||||
let signals = self.subscribe_to_signals();
|
let signals = self.subscribe_to_signals();
|
||||||
let addr: Addr<Syn, _> = Actor::start(self);
|
let addr: Addr<Syn, _> = Actor::start(self);
|
||||||
signals.map(|signals| signals.send(
|
signals.map(|signals| signals.send(
|
||||||
signal::Subscribe(addr.clone().subscriber())));
|
signal::Subscribe(addr.clone().recipient())));
|
||||||
Ok(addr)
|
Ok(addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -443,7 +443,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
|
|||||||
self
|
self
|
||||||
});
|
});
|
||||||
signals.map(|signals| signals.send(
|
signals.map(|signals| signals.send(
|
||||||
signal::Subscribe(addr.clone().subscriber())));
|
signal::Subscribe(addr.clone().recipient())));
|
||||||
addr
|
addr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user