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:
parent
4b8181476c
commit
a544034c06
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue