Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl Default for RateLimitConfig {
/// Maps RPC methods to backend groups or blocks them entirely.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct RouteConfig {
/// Method name or prefix (e.g., "eth_call" or "eth_").
/// Method name or prefix (e.g., `eth_call` or `eth_`).
pub method: String,
/// Target group name or "block" to reject the method.
pub target: String,
Expand Down
8 changes: 4 additions & 4 deletions crates/rpc/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<C: CodecConfig> RpcCodec<C> {
&self.config
}

/// Parse raw bytes into a ParsedRequestPacket, enforcing size limits.
/// Parse raw bytes into a `ParsedRequestPacket`, enforcing size limits.
///
/// This parses the JSON and validates structure. Use this when you need
/// to inspect the request method or parameters.
Expand Down Expand Up @@ -262,7 +262,7 @@ impl<C: CodecConfig> RpcCodec<C> {
self.decode(bytes.as_ref())
}

/// Serialize a ParsedResponsePacket to bytes.
/// Serialize a `ParsedResponsePacket` to bytes.
///
/// # Errors
///
Expand All @@ -276,7 +276,7 @@ impl<C: CodecConfig> RpcCodec<C> {
Ok(Bytes::from(json))
}

/// Serialize a single ParsedResponse to bytes.
/// Serialize a single `ParsedResponse` to bytes.
///
/// # Errors
///
Expand All @@ -298,7 +298,7 @@ impl<C: CodecConfig> RpcCodec<C> {
Ok(Bytes::from(json))
}

/// Parse raw bytes into a ParsedRequestPacket.
/// Parse raw bytes into a `ParsedRequestPacket`.
fn parse_request_packet(&self, bytes: &[u8]) -> Result<ParsedRequestPacket, CodecError> {
// Trim leading whitespace to check if it starts with [ (batch) or { (single)
let trimmed = bytes.iter().skip_while(|b| b.is_ascii_whitespace()).copied().next();
Expand Down
2 changes: 1 addition & 1 deletion crates/traits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Core trait definitions for Roxy components including Backend, Cache,
RateLimiter, LoadBalancer, and runtime abstractions for spawning,
`RateLimiter`, `LoadBalancer`, and runtime abstractions for spawning,
clocks, and metrics.

## License
Expand Down
Loading