1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-08 18:19:30 +00: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 addr: Addr<Syn, _> = Actor::start(self);
signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().subscriber())));
signal::Subscribe(addr.clone().recipient())));
addr
}
}
@ -352,7 +352,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
let signals = self.subscribe_to_signals();
let addr: Addr<Syn, _> = Actor::start(self);
signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().subscriber())));
signal::Subscribe(addr.clone().recipient())));
Ok(addr)
}
}
@ -396,7 +396,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
let signals = self.subscribe_to_signals();
let addr: Addr<Syn, _> = Actor::start(self);
signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().subscriber())));
signal::Subscribe(addr.clone().recipient())));
Ok(addr)
}
}
@ -443,7 +443,7 @@ impl<H: IntoHttpHandler> HttpServer<H>
self
});
signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().subscriber())));
signal::Subscribe(addr.clone().recipient())));
addr
}
}