Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Apr 14, 2023
1 parent 55e41cc commit 0b8b30b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aquamarine/src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ use crate::{AquaRuntime, InterpretationStats};

pub struct Actor<RT, F> {
/// Particle of that actor is expired after that deadline
pub deadline: Deadline,
deadline: Deadline,
future: Option<(usize, Fut<RT>)>,
pub mailbox: VecDeque<Particle>,
mailbox: VecDeque<Particle>,
waker: Option<Waker>,
functions: Functions<F>,
/// Particle that's memoized on the actor creation.
Expand Down
5 changes: 4 additions & 1 deletion aquamarine/src/plumber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ impl<RT: AquaRuntime, F: ParticleFunctionStatic> Plumber<RT, F> {
if !actor.is_expired(now) || actor.is_executing() {
return true; // keep actor
}

log::debug!(
target: "particle_reap",
"Reaping particle's actor particle_id={particle_id}, peer_id={peer_id})"
);
// cleanup files and dirs after particle processing (vault & prev_data)
// TODO: do not pass vm https://github.com/fluencelabs/fluence/issues/1216
if let Err(err) = actor.cleanup(particle_id, &peer_id.to_string(), &mut vm) {
Expand Down

0 comments on commit 0b8b30b

Please sign in to comment.