Skip to content

Commit

Permalink
fix: Keep scope when splitting envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
jjbayer committed Jul 12, 2024
1 parent 97f67c1 commit a9622ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion relay-server/src/endpoints/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,18 @@ fn queue_envelope(
}

// Split off the envelopes by item type.
let scoping = managed_envelope.scoping();
let envelopes = ProcessingGroup::split_envelope(*managed_envelope.take_envelope());
for (group, envelope) in envelopes {
let envelope = buffer_guard
let mut envelope = buffer_guard
.enter(
envelope,
state.outcome_aggregator().clone(),
state.test_store().clone(),
group,
)
.map_err(BadStoreRequest::QueueFailed)?;
envelope.scope(scoping);
state.project_cache().send(ValidateEnvelope::new(envelope));
}
// The entire envelope is taken for a split above, and it's empty at this point, we can just
Expand Down

0 comments on commit a9622ea

Please sign in to comment.