Skip to content

feat: add rate limiter for [main]#1763

Merged
Mirko-von-Leipzig merged 8 commits intomainfrom
bernhard-feat-add-rate-limiter-for-main
Mar 11, 2026
Merged

feat: add rate limiter for [main]#1763
Mirko-von-Leipzig merged 8 commits intomainfrom
bernhard-feat-add-rate-limiter-for-main

Conversation

@drahnr
Copy link
Copy Markdown
Contributor

@drahnr drahnr commented Mar 9, 2026

Important

Targets main

Port of #1750 for main.
Also contains #1727 to avoid more test failures due to how we do port allocations for tests

@drahnr drahnr changed the base branch from next to main March 9, 2026 20:34
@drahnr drahnr changed the title feat: add rate limiter for main [main] feat: add rate limiter for [main] Mar 9, 2026
@drahnr drahnr force-pushed the bernhard-feat-add-rate-limiter-for-main branch from 06fa8bb to 5ebd3eb Compare March 9, 2026 20:46
@drahnr drahnr marked this pull request as draft March 9, 2026 20:47
@drahnr drahnr force-pushed the bernhard-feat-add-rate-limiter-for-main branch from 5ebd3eb to 3fb3019 Compare March 9, 2026 21:07
// Build the gRPC server with the API service and trace layer.

tonic::transport::Server::builder()
.accept_http1(true)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this slipped through in the other PR too?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

next also has accept_http1(true) if that's what you mean?

Comment thread crates/rpc/src/tests.rs
TcpListener::bind("127.0.0.1:0").await.expect("store should bind a port");
store_listener.local_addr().expect("store should get a local address")
};
async fn start_rpc() -> (RpcClient, std::net::SocketAddr, TcpListener) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The change to retain the port allocation rather than to allocate -> free -> attempt to re-allocate the initial one.

@drahnr drahnr marked this pull request as ready for review March 10, 2026 12:28
@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 7c9df3e into main Mar 11, 2026
20 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the bernhard-feat-add-rate-limiter-for-main branch March 11, 2026 12:19
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