1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +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 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
}
}