Skip to content

Commit

Permalink
Add new envelope summary update in events.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSkonnord committed Mar 23, 2021
1 parent f76e797 commit be73b2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions relay-server/src/actors/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1583,7 +1583,7 @@ impl Handler<HandleEnvelope> 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
Expand All @@ -1594,9 +1594,7 @@ impl Handler<HandleEnvelope> 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)),
Expand Down

0 comments on commit be73b2b

Please # to comment.