1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-19 01:50:10 +00:00

update names

This commit is contained in:
Nikolay Kim 2018-02-12 12:45:08 -08:00
parent 8c1b5fa945
commit 720d8c36c1
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ use smallvec::SmallVec;
use actix::{Actor, ActorState, ActorContext, AsyncContext,
Addr, Handler, Message, SpawnHandle, Syn, Unsync};
use actix::fut::ActorFuture;
use actix::dev::{ContextImpl, ToEnvelope, RemoteEnvelope};
use actix::dev::{ContextImpl, ToEnvelope, SyncEnvelope};
use body::{Body, Binary};
use error::{Error, ErrorInternalServerError};
@ -210,7 +210,7 @@ impl<A, M, S> ToEnvelope<Syn<A>, M> for HttpContext<A, S>
M: Message + Send + 'static, M::Result: Send,
{
fn pack(msg: M, tx: Option<Sender<M::Result>>) -> Syn<A> {
Syn::new(Box::new(RemoteEnvelope::envelope(msg, tx)))
Syn::new(Box::new(SyncEnvelope::envelope(msg, tx)))
}
}

View file

@ -7,7 +7,7 @@ use smallvec::SmallVec;
use actix::{Actor, ActorState, ActorContext, AsyncContext,
Addr, Handler, Message, Syn, Unsync, SpawnHandle};
use actix::fut::ActorFuture;
use actix::dev::{ContextImpl, ToEnvelope, RemoteEnvelope};
use actix::dev::{ContextImpl, ToEnvelope, SyncEnvelope};
use body::{Body, Binary};
use error::{Error, ErrorInternalServerError};
@ -222,7 +222,7 @@ impl<A, M, S> ToEnvelope<Syn<A>, M> for WebsocketContext<A, S>
M: Message + Send + 'static, M::Result: Send
{
fn pack(msg: M, tx: Option<Sender<M::Result>>) -> Syn<A> {
Syn::new(Box::new(RemoteEnvelope::envelope(msg, tx)))
Syn::new(Box::new(SyncEnvelope::envelope(msg, tx)))
}
}