we're sending Envelope and transmitting Arc<Envelope>, since we're wrapping the Envelope in an Arc to transmit it, we (probably) don't need to wrap the Event in an Arc too

This commit is contained in:
Adrian Malacoda
2017-02-25 20:33:47 -06:00
parent f22e4755d3
commit 4d5a412395
5 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ pub enum Event {
pub struct Envelope {
pub from: Option<String>,
pub event: Arc<Event>,
pub event: Event,
pub to: Vec<String>
}
@@ -22,7 +22,7 @@ impl Envelope {
pub fn new (event: Event) -> Envelope {
Envelope {
from: None,
event: Arc::new(event),
event: event,
to: vec![]
}
}