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:
@@ -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![]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user