@@ -243,9 +243,9 @@ static RATE_LIMITER: LazyLock<Rate> = LazyLock::new(|| Rate::new(Duration::from_
243243// REQUEST QUEUE
244244// ================================================================================================
245245
246- /// Request queue holds the list of requests that are waiting to be processed by the workers and
247- /// the time they were enqueued.
248- /// It is used to keep track of the order of the requests to then assign them to the workers.
246+ /// Request queue holds the list of requests that are waiting to be processed by the workers and the
247+ /// time they were enqueued. It is used to keep track of the order of the requests to then assign
248+ /// them to the workers.
249249pub struct RequestQueue {
250250 queue : RwLock < VecDeque < ( Uuid , Instant ) > > ,
251251}
@@ -299,8 +299,8 @@ static QUEUE: LazyLock<RequestQueue> = LazyLock::new(RequestQueue::new);
299299
300300/// Pingora `RequestHeader` injector for OpenTelemetry trace context propagation.
301301///
302- /// This allows the proxy to inject trace context into headers that will be forwarded
303- /// to worker nodes, enabling proper parent-child trace relationships.
302+ /// This allows the proxy to inject trace context into headers that will be forwarded to worker
303+ /// nodes, enabling proper parent-child trace relationships.
304304struct PingoraHeaderInjector < ' a > ( & ' a mut pingora:: http:: RequestHeader ) ;
305305
306306impl opentelemetry:: propagation:: Injector for PingoraHeaderInjector < ' _ > {
@@ -321,8 +321,8 @@ impl opentelemetry::propagation::Injector for PingoraHeaderInjector<'_> {
321321/// Custom context for the request/response lifecycle
322322///
323323/// We use this context to keep track of the number of tries for a request, the unique ID for the
324- /// request, the worker that will process the request, a span that will be used for traces along
325- /// the transaction execution, and a timer to track how long the request took.
324+ /// request, the worker that will process the request, a span that will be used for traces along the
325+ /// transaction execution, and a timer to track how long the request took.
326326#[ derive( Debug ) ]
327327pub struct RequestContext {
328328 /// Number of tries for the request
@@ -362,9 +362,9 @@ impl RequestContext {
362362
363363/// Wrapper around the load balancer that implements the [`ProxyHttp`] trait
364364///
365- /// This wrapper is used to implement the [`ProxyHttp`] trait for [`Arc<LoadBalancer>`].
366- /// This is necessary because we want to share the load balancer between the proxy server and the
367- /// health check background service.
365+ /// This wrapper is used to implement the [`ProxyHttp`] trait for [`Arc<LoadBalancer>`]. This is
366+ /// necessary because we want to share the load balancer between the proxy server and the health
367+ /// check background service.
368368#[ derive( Debug ) ]
369369pub struct LoadBalancer ( pub Arc < LoadBalancerState > ) ;
370370
0 commit comments