Skip to content

Commit

Permalink
fix(core): change location in imports of the ActorStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
nerodono committed Jul 17, 2024
1 parent 23befa9 commit f1a49bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion elfo-core/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use crate::{
};

use crate::{
actor::{Actor, ActorMeta, ActorStartInfo, ActorStatus},
actor::{Actor, ActorMeta, ActorStartInfo},
actor_status::ActorStatus,
addr::{Addr, GroupNo},
config::SystemConfig,
context::Context,
Expand Down
6 changes: 1 addition & 5 deletions elfo-core/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ use std::{fmt::Display, sync::Arc};

use derive_more::Constructor;

use crate::{
actor::{ActorMeta, ActorStatus},
config::AnyConfig,
message,
};
use crate::{actor::ActorMeta, actor_status::ActorStatus, config::AnyConfig, message};

/// A helper type for using in generic code (e.g. as an associated type) to
/// indicate a message that cannot be constructed.
Expand Down
2 changes: 1 addition & 1 deletion elfo-core/src/restarting/restart_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl RestartPolicy {
pub(crate) fn restarting_allowed(&self, status: &ActorStatus) -> bool {
match &self.mode {
RestartMode::Always(_) => true,
RestartMode::OnFailure(_) => status.is_failed(),
RestartMode::OnFailure(_) => status.kind().is_failed(),
_ => false,
}
}
Expand Down
3 changes: 2 additions & 1 deletion elfo-core/src/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ use elfo_utils::CachePadded;

use self::{error_chain::ErrorChain, measure_poll::MeasurePoll};
use crate::{
actor::{Actor, ActorMeta, ActorStartInfo, ActorStatus},
actor::{Actor, ActorMeta, ActorStartInfo},
actor_status::ActorStatus,
config::{AnyConfig, Config, SystemConfig},
context::Context,
envelope::Envelope,
Expand Down

0 comments on commit f1a49bb

Please sign in to comment.