Skip to content

PERP-4568 | Refactor CosmosInterceptor and parse COSMOS_GRPC#65

Merged
anakinzhed merged 4 commits intomainfrom
PERP-4568
Jul 10, 2025
Merged

PERP-4568 | Refactor CosmosInterceptor and parse COSMOS_GRPC#65
anakinzhed merged 4 commits intomainfrom
PERP-4568

Conversation

@anakinzhed
Copy link
Contributor

No description provided.

@anakinzhed anakinzhed marked this pull request as ready for review July 9, 2025 17:52
@anakinzhed anakinzhed requested a review from snoyberg July 10, 2025 16:57
let grpc_channel = grpc_endpoint.connect_lazy();

let referer_header = self.referer_header().map(|x| x.to_owned());
if !headers.iter().any(|(k, _)| k.as_str() == "referer") {
Copy link
Member

Choose a reason for hiding this comment

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

NIT: It would be better to reverse these conditionals: first check if the referer_header() is Some since it's the cheaper test.

@anakinzhed anakinzhed merged commit d3df544 into main Jul 10, 2025
1 check passed
@anakinzhed anakinzhed deleted the PERP-4568 branch July 10, 2025 18:32
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.

2 participants