1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

use Recipient

This commit is contained in:
Nikolay Kim 2018-02-12 22:09:31 -08:00
parent 4b8181476c
commit a544034c06

View File

@ -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
} }
} }