Skip to content

Commit cbf38a0

Browse files
committed
fix(graph): fix fmt import order and broken rustdoc intra-doc links
- graphql.rs: move graphql_rate_limit import before graphql_throttle (alpha order) - graphql_throttle.rs: pre_flight_delay -> pre_flight_reserve in PluginBudget doc - graphql_throttle.rs: remove unresolvable link brackets from module-level prose
1 parent 112d3d4 commit cbf38a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/stygian-graph/src/adapters/graphql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ use async_trait::async_trait;
1717
use serde_json::{Value, json};
1818
use tokio::sync::RwLock;
1919

20+
use crate::adapters::graphql_rate_limit::{RequestRateLimit, rate_limit_acquire};
2021
use crate::adapters::graphql_throttle::{
2122
PluginBudget, pre_flight_reserve, reactive_backoff_ms, release_reservation, update_budget,
2223
};
23-
use crate::adapters::graphql_rate_limit::{RequestRateLimit, rate_limit_acquire};
2424
use crate::application::graphql_plugin_registry::GraphQlPluginRegistry;
2525
use crate::application::pipeline_parser::expand_template;
2626
use crate::domain::error::{Result, ServiceError, StygianError};

crates/stygian-graph/src/adapters/graphql_throttle.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
//! Before each request a *proactive* pre-flight delay is computed: if the
1919
//! projected available budget (accounting for elapsed restore time and
2020
//! in-flight reservations) will be too low, the caller sleeps until it
21-
//! recovers. After the delay, [`pre_flight_reserve`] atomically reserves an
21+
//! recovers. After the delay, `pre_flight_reserve` atomically reserves an
2222
//! estimated cost against the budget so concurrent callers immediately see a
23-
//! reduced balance. Call [`release_reservation`] on every exit path (success
23+
//! reduced balance. Call `release_reservation` on every exit path (success
2424
//! and error) to keep the pending balance accurate. This eliminates wasted
2525
//! requests that would otherwise return `THROTTLED`.
2626
@@ -123,7 +123,7 @@ impl LiveBudget {
123123

124124
/// A shareable, cheaply-cloneable handle to a per-plugin `LiveBudget`.
125125
///
126-
/// Create one per registered plugin and pass it to [`pre_flight_delay`] before
126+
/// Create one per registered plugin and pass it to [`pre_flight_reserve`] before
127127
/// each request.
128128
///
129129
/// # Example

0 commit comments

Comments
 (0)