Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Move envelope queueing directly into the endpoint handler #1431

Merged
merged 5 commits into from
Aug 19, 2022

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Aug 19, 2022

The QueueEnvelope message no longer needs to reside on the EnvelopeManager
since #1416. Instead, it has become a simple dispatch function that calls
ProcessMetrics and ValidateEnvelope directly on the target actors.

To skip a redundant message, this PR removes this message entirely and moves its
code into the endpoint handler code. The BufferGuard has moved into utilities.

There is no expected change in behavior or performance, although there could be
a slight decrease in latency since the endpoint no longer has to wait for this
actor.

#skip-changelog

@jan-auer jan-auer requested a review from a team August 19, 2022 13:21
@jan-auer jan-auer enabled auto-merge (squash) August 19, 2022 13:22
Copy link
Contributor

@olksdr olksdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

relay-server/src/utils/buffer.rs Outdated Show resolved Hide resolved
@jan-auer jan-auer disabled auto-merge August 19, 2022 16:01
@jan-auer jan-auer enabled auto-merge (squash) August 19, 2022 16:01
@jan-auer jan-auer merged commit 2da329a into master Aug 19, 2022
@jan-auer jan-auer deleted the ref/move-queue-envelope branch August 19, 2022 16:30
jan-auer added a commit that referenced this pull request Aug 23, 2022
* master:
  test: Use similar_asserts and introduce test modules (#1435)
  build: Update insta to 1.19.0 (#1434)
  ref: Move envelope queueing directly into the endpoint handler (#1431)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants