Add source to internal event

This commit is contained in:
Félix Saparelli 2021-09-03 07:57:45 +12:00
parent 29e7780fdc
commit 608aa516b1
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ use tracing::{debug, error, trace};
use crate::{
error::RuntimeError,
event::{Event, Particle},
event::{Event, Particle, Source},
};
use super::Process;
@ -106,7 +106,10 @@ impl Supervisor {
}
Ok(status) => {
let event = Event {
particulars: vec![Particle::ProcessCompletion(status)],
particulars: vec![
Particle::Source(Source::Internal),
Particle::ProcessCompletion(status),
],
metadata: Default::default(),
};

View File

@ -42,6 +42,7 @@ pub enum Source {
Mouse,
Os,
Time,
Internal,
}
impl Event {