Skip to content

Commit

Permalink
chore: derive ActorStatusReport constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Erigara authored and loyd committed Nov 7, 2024
1 parent 0723882 commit 279338e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions elfo-core/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,13 @@ pub struct ActorStatusReport {
pub meta: Arc<ActorMeta>,
pub status: ActorStatus,
}

impl ActorStatusReport {
#[cfg(feature = "test-util")]
pub fn new(meta: impl Into<Arc<ActorMeta>>, status: ActorStatus) -> Self {
Self {
meta: meta.into(),
status,
}
}
}

0 comments on commit 279338e

Please sign in to comment.