Skip to content

Commit d36a961

Browse files
wutchzonejohnhurt
authored andcommitted
Fix broken rustdoc links
Includes-commit: 69c7623 Replicated-from: #548
1 parent 694b195 commit d36a961

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.bleep

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
648f8551dddf28b9300eaee16d5385517a090a4e
1+
659597442d712b17a1d77649afe7afffbdcfff9a

pingora-memory-cache/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl<K: Hash, T: Clone + Send + Sync + 'static> MemoryCache<K, T> {
137137
}
138138
}
139139

140-
/// Similar to [get], fetch the key and return its value in addition to a
140+
/// Similar to [Self::get], fetch the key and return its value in addition to a
141141
/// [CacheStatus] but also return the value even if it is expired. When the
142142
/// value is expired, the [Duration] of how long it has been stale will
143143
/// also be returned.

pingora-memory-cache/src/read_through.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ where
284284
}
285285
}
286286

287-
/// Similar to [get], query the cache for a given value, but also returns the value even if the
287+
/// Similar to [Self::get], query the cache for a given value, but also returns the value even if the
288288
/// value is expired up to `stale_ttl`. If it is a cache miss or the value is stale more than
289289
/// the `stale_ttl`, a lookup will be performed to populate the cache.
290290
pub async fn get_stale(
@@ -313,11 +313,13 @@ where
313313
S: Clone + Send + Sync,
314314
CB: Lookup<K, T, S> + Sync + Send,
315315
{
316-
/// Similar to [get_stale], but when it returns the stale value, it also initiates a lookup
316+
/// Similar to [Self::get_stale], but when it returns the stale value, it also initiates a lookup
317317
/// in the background in order to refresh the value.
318318
///
319319
/// Note that this function requires the [RTCache] to be static, which can be done by wrapping
320320
/// it with something like [once_cell::sync::Lazy].
321+
///
322+
/// [once_cell::sync::Lazy]: https://docs.rs/once_cell/latest/once_cell/sync/struct.Lazy.html
321323
pub async fn get_stale_while_update(
322324
&'static self,
323325
key: &K,

pingora-proxy/src/proxy_trait.rs

+2
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ pub trait ProxyHttp {
228228
/// It also allow users to modify the response header accordingly.
229229
///
230230
/// The default implementation can handle a single-range as per [RFC7232].
231+
///
232+
/// [RFC7232]: https://www.rfc-editor.org/rfc/rfc7232
231233
fn range_header_filter(
232234
&self,
233235
req: &RequestHeader,

0 commit comments

Comments
 (0)