Skip to content

Commit

Permalink
feat: updated request address to use the request manager
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau committed Sep 14, 2023
1 parent a846a67 commit e935c23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ector/src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ where
pub type DynamicAddress<M> = DynamicSender<'static, M>;

/// Type alias over a [DynamicAddress] using a [Request] as message
pub type DynamicRequestAddress<M, R> = DynamicSender<'static, Request<M, R>>;
pub type DynamicRequestAddress<M, R> = RequestManager<DynamicSender<'static, Request<M, R>>, M, R>;

/// A handle to another actor for dispatching messages.
///
Expand All @@ -171,7 +171,8 @@ pub type DynamicRequestAddress<M, R> = DynamicSender<'static, Request<M, R>>;
pub type Address<M, MUT, const N: usize = 1> = Sender<'static, MUT, M, N>;

/// Type alias over a [Address] using a [Request] as message
pub type RequestAddress<M, R, MUT, const N: usize = 1> = Sender<'static, MUT, Request<M, R>, N>;
pub type RequestAddress<M, R, MUT, const N: usize = 1> =
RequestManager<Sender<'static, Request<M, R>, MUT, N>, M, R, MUT>;

pub struct Request<M, R>
where
Expand Down

0 comments on commit e935c23

Please sign in to comment.