mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-19 04:15:38 +02:00
update names
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user