From be73b2bd9b244788bf052c41f9998bc165858c52 Mon Sep 17 00:00:00 2001 From: Ryan Skonnord Date: Tue, 23 Mar 2021 16:34:00 -0700 Subject: [PATCH] Add new envelope summary update in events.rs --- relay-server/src/actors/events.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/relay-server/src/actors/events.rs b/relay-server/src/actors/events.rs index 5775780ebc..d6c17e6c76 100644 --- a/relay-server/src/actors/events.rs +++ b/relay-server/src/actors/events.rs @@ -1583,7 +1583,7 @@ impl Handler for EventManager { .map_err(ProcessingError::ScheduleFailed) .flatten() }) - .and_then(clone!(project, |processed| { + .and_then(clone!(project, envelope_summary, |processed| { let rate_limits = processed.rate_limits; // Processing returned new rate limits. Cache them on the project to avoid expensive @@ -1594,9 +1594,7 @@ impl Handler for EventManager { match processed.envelope { Some(envelope) => { - // TODO: Fix scope problem and uncomment - // envelope_summary.replace(EnvelopeSummary::compute(&envelope)); - + envelope_summary.replace(EnvelopeSummary::compute(&envelope)); Ok(envelope) } None => Err(ProcessingError::RateLimited(rate_limits)),