-
Notifications
You must be signed in to change notification settings - Fork 104
feat(relay): Simplify Proxy Mode #5165
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
Changes from all commits
6ce4b13
f08dd9c
adae25d
cdfd669
6551766
4800bb0
c293dc0
2d019d4
3684d37
4f8939d
130f83d
6b83213
5175ddd
9b660e5
ac14520
b0f5ed9
213e7ea
4001c74
26174bb
0f6646b
ebcbd4c
7b517d6
44b9e0d
8eae7e0
6af517c
dca6f1f
b278533
0c02913
c315533
3dc2099
3943930
c54e9e8
c30d12e
ddc9186
a91c189
f0edd19
59cb398
13c6112
99f4959
e395328
26f646c
fa8f354
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3358,7 +3358,7 @@ impl RateLimiter { | |
| } | ||
| } | ||
|
|
||
| fn encode_payload(body: &Bytes, http_encoding: HttpEncoding) -> Result<Bytes, std::io::Error> { | ||
| pub fn encode_payload(body: &Bytes, http_encoding: HttpEncoding) -> Result<Bytes, std::io::Error> { | ||
| let envelope_body: Vec<u8> = match http_encoding { | ||
| HttpEncoding::Identity => return Ok(body.clone()), | ||
| HttpEncoding::Deflate => { | ||
|
|
@@ -3392,10 +3392,10 @@ fn encode_payload(body: &Bytes, http_encoding: HttpEncoding) -> Result<Bytes, st | |
| /// An upstream request that submits an envelope via HTTP. | ||
| #[derive(Debug)] | ||
| pub struct SendEnvelope { | ||
| envelope: TypedEnvelope<Processed>, | ||
| body: Bytes, | ||
| http_encoding: HttpEncoding, | ||
| project_cache: ProjectCacheHandle, | ||
| pub envelope: TypedEnvelope<Processed>, | ||
| pub body: Bytes, | ||
| pub http_encoding: HttpEncoding, | ||
| pub project_cache: ProjectCacheHandle, | ||
| } | ||
|
Comment on lines
3393
to
3399
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the reader, we discussed what to do here and decided to just make it public for this PR, we can clean up visibility and types in a follow up There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tried to move the function ( |
||
|
|
||
| impl UpstreamRequest for SendEnvelope { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.