mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
update to actix-0.11.0-beta.3 for actix-web-actors (#2042)
This commit is contained in:
parent
0195824794
commit
14b249b804
@ -16,7 +16,7 @@ name = "actix_web_actors"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix = { version = "0.11.0-beta.2", default-features = false }
|
actix = { version = "0.11.0-beta.3", default-features = false }
|
||||||
actix-codec = "0.4.0-beta.1"
|
actix-codec = "0.4.0-beta.1"
|
||||||
actix-http = "3.0.0-beta.3"
|
actix-http = "3.0.0-beta.3"
|
||||||
actix-web = { version = "4.0.0-beta.3", default-features = false }
|
actix-web = { version = "4.0.0-beta.3", default-features = false }
|
||||||
|
@ -44,7 +44,7 @@ where
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn spawn<F>(&mut self, fut: F) -> SpawnHandle
|
fn spawn<F>(&mut self, fut: F) -> SpawnHandle
|
||||||
where
|
where
|
||||||
F: ActorFuture<Output = (), Actor = A> + 'static,
|
F: ActorFuture<A, Output = ()> + 'static,
|
||||||
{
|
{
|
||||||
self.inner.spawn(fut)
|
self.inner.spawn(fut)
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ where
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn wait<F>(&mut self, fut: F)
|
fn wait<F>(&mut self, fut: F)
|
||||||
where
|
where
|
||||||
F: ActorFuture<Output = (), Actor = A> + 'static,
|
F: ActorFuture<A, Output = ()> + 'static,
|
||||||
{
|
{
|
||||||
self.inner.wait(fut)
|
self.inner.wait(fut)
|
||||||
}
|
}
|
||||||
|
@ -211,14 +211,14 @@ where
|
|||||||
{
|
{
|
||||||
fn spawn<F>(&mut self, fut: F) -> SpawnHandle
|
fn spawn<F>(&mut self, fut: F) -> SpawnHandle
|
||||||
where
|
where
|
||||||
F: ActorFuture<Output = (), Actor = A> + 'static,
|
F: ActorFuture<A, Output = ()> + 'static,
|
||||||
{
|
{
|
||||||
self.inner.spawn(fut)
|
self.inner.spawn(fut)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn wait<F>(&mut self, fut: F)
|
fn wait<F>(&mut self, fut: F)
|
||||||
where
|
where
|
||||||
F: ActorFuture<Output = (), Actor = A> + 'static,
|
F: ActorFuture<A, Output = ()> + 'static,
|
||||||
{
|
{
|
||||||
self.inner.wait(fut)
|
self.inner.wait(fut)
|
||||||
}
|
}
|
||||||
@ -495,7 +495,6 @@ where
|
|||||||
|
|
||||||
if !*this.closed {
|
if !*this.closed {
|
||||||
loop {
|
loop {
|
||||||
this = self.as_mut().project();
|
|
||||||
match Pin::new(&mut this.stream).poll_next(cx) {
|
match Pin::new(&mut this.stream).poll_next(cx) {
|
||||||
Poll::Ready(Some(Ok(chunk))) => {
|
Poll::Ready(Some(Ok(chunk))) => {
|
||||||
this.buf.extend_from_slice(&chunk[..]);
|
this.buf.extend_from_slice(&chunk[..]);
|
||||||
|
Loading…
Reference in New Issue
Block a user