Skip to content

Commit 39f875f

Browse files
committed
fix: rustdoc link errors — use backticks for private items
1 parent 5b2304c commit 39f875f

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

quickwit/quickwit-control-plane/src/indexing_scheduler/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct IndexingSchedulerState {
6868
///
6969
/// Scheduling executes the following steps:
7070
/// 1. Builds a [`PhysicalIndexingPlan`] from the list of logical indexing tasks. See
71-
/// [`build_physical_indexing_plan`] for the implementation details.
71+
/// `build_physical_indexing_plan` for the implementation details.
7272
/// 2. Apply the [`PhysicalIndexingPlan`]: for each indexer, the scheduler send the indexing tasks
7373
/// by gRPC. An indexer immediately returns an Ok and apply asynchronously the received plan. Any
7474
/// errors (network) happening in this step are ignored. The scheduler runs a control loop that
@@ -98,7 +98,7 @@ pub struct IndexingSchedulerState {
9898
/// Concretely, it will send the faulty nodes of the plan they are supposed to follow.
9999
//
100100
/// Finally, in order to give the time for each indexer to run their indexing tasks, the control
101-
/// plane will wait at least [`MIN_DURATION_BETWEEN_SCHEDULING`] before comparing the desired
101+
/// plane will wait at least `MIN_DURATION_BETWEEN_SCHEDULING` before comparing the desired
102102
/// plan with the running plan.
103103
pub struct IndexingScheduler {
104104
cluster_id: String,

quickwit/quickwit-indexing/src/actors/uploader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub enum UploaderType {
6666
/// [`SplitsUpdateMailbox`] wraps either a [`Mailbox<Sequencer<P>>`] or [`Mailbox<P>`].
6767
///
6868
/// It makes it possible to send a splits update either to the [`Sequencer`] or directly
69-
/// to the publisher actor `P`. It is used in combination with [`SplitsUpdateSender`] that
69+
/// to the publisher actor `P`. It is used in combination with `SplitsUpdateSender` that
7070
/// will do the send.
7171
///
7272
/// This is useful as we have different requirements between the indexing pipeline and

quickwit/quickwit-metastore/src/metastore/file_backed/file_backed_index/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//! [`FileBackedIndex`] module. It is public so that the crate `quickwit-backward-compat` can
16-
//! import [`FileBackedIndex`] and run backward-compatibility tests. You should not have to import
15+
//! `FileBackedIndex` module. It is public so that the crate `quickwit-backward-compat` can
16+
//! import `FileBackedIndex` and run backward-compatibility tests. You should not have to import
1717
//! anything from here directly.
1818
1919
mod serialize;

quickwit/quickwit-metastore/src/metastore/file_backed/lazy_file_backed_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use tracing::error;
2424
use super::file_backed_index::FileBackedIndex;
2525
use super::store_operations::{METASTORE_FILE_NAME, load_index};
2626

27-
/// Lazy [`FileBackedIndex`]. It loads a `FileBackedIndex` on demand. When the index is first
27+
/// Lazy `FileBackedIndex`. It loads a `FileBackedIndex` on demand. When the index is first
2828
/// loaded, it optionally spawns a task to periodically poll the storage and update the index.
2929
pub(crate) struct LazyFileBackedIndex {
3030
index_id: IndexId,

quickwit/quickwit-metastore/src/metastore/file_backed/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
//! Module for [`FileBackedMetastore`]. It is public so that the crate `quickwit-backward-compat`
16-
//! can import [`FileBackedIndex`] and run backward-compatibility tests. You should not have to
16+
//! can import `FileBackedIndex` and run backward-compatibility tests. You should not have to
1717
//! import anything from here directly.
1818
1919
pub mod file_backed_index;
@@ -116,9 +116,9 @@ impl From<bool> for MutationOccurred<()> {
116116
/// into as many files and stores a map of indexes
117117
/// (index_id, index_status) in a dedicated file `manifest.json`.
118118
///
119-
/// A [`LazyIndexStatus`] describes the lifecycle of an index: [`LazyIndexStatus::Creating`] and
120-
/// [`LazyIndexStatus::Deleting`] are transitioning states that indicates that the index is not
121-
/// yet available. On the contrary, the [`LazyIndexStatus::Active`] status indicates the index is
119+
/// A `LazyIndexStatus` describes the lifecycle of an index: `LazyIndexStatus::Creating` and
120+
/// `LazyIndexStatus::Deleting` are transitioning states that indicates that the index is not
121+
/// yet available. On the contrary, the `LazyIndexStatus::Active` status indicates the index is
122122
/// ready to be fetched and updated.
123123
///
124124
/// Transitioning states are useful to track inconsistencies between the in-memory and on-disk data

quickwit/quickwit-metastore/src/metastore_resolver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl fmt::Debug for MetastoreResolver {
4545
}
4646

4747
impl MetastoreResolver {
48-
/// Creates an empty [`MetastoreResolverBuilder`].
48+
/// Creates an empty `MetastoreResolverBuilder`.
4949
pub fn builder() -> MetastoreResolverBuilder {
5050
MetastoreResolverBuilder::default()
5151
}

quickwit/quickwit-proto/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl TryFrom<metastore::DeleteQuery> for search::SearchRequest {
130130
pub struct MutMetadataMap<'a>(&'a mut tonic::metadata::MetadataMap);
131131

132132
impl Injector for MutMetadataMap<'_> {
133-
/// Sets a key-value pair in the [`MetadataMap`]. No-op if the key or value is invalid.
133+
/// Sets a key-value pair in the [`tonic::metadata::MetadataMap`]. No-op if the key or value is invalid.
134134
fn set(&mut self, key: &str, value: String) {
135135
if let Ok(metadata_key) = tonic::metadata::MetadataKey::from_bytes(key.as_bytes())
136136
&& let Ok(metadata_value) = tonic::metadata::MetadataValue::try_from(&value)
@@ -141,13 +141,13 @@ impl Injector for MutMetadataMap<'_> {
141141
}
142142

143143
impl Extractor for MutMetadataMap<'_> {
144-
/// Gets a value for a key from the MetadataMap. If the value can't be converted to &str,
144+
/// Gets a value for a key from the `MetadataMap`. If the value can't be converted to &str,
145145
/// returns None.
146146
fn get(&self, key: &str) -> Option<&str> {
147147
self.0.get(key).and_then(|metadata| metadata.to_str().ok())
148148
}
149149

150-
/// Collect all the keys from the MetadataMap.
150+
/// Collect all the keys from the `MetadataMap`.
151151
fn keys(&self) -> Vec<&str> {
152152
self.0
153153
.keys()
@@ -181,13 +181,13 @@ impl Interceptor for SpanContextInterceptor {
181181
struct MetadataMap<'a>(&'a tonic::metadata::MetadataMap);
182182

183183
impl Extractor for MetadataMap<'_> {
184-
/// Gets a value for a key from the MetadataMap. If the value can't be converted to &str,
184+
/// Gets a value for a key from the `MetadataMap`. If the value can't be converted to &str,
185185
/// returns None.
186186
fn get(&self, key: &str) -> Option<&str> {
187187
self.0.get(key).and_then(|metadata| metadata.to_str().ok())
188188
}
189189

190-
/// Collect all the keys from the MetadataMap.
190+
/// Collect all the keys from the `MetadataMap`.
191191
fn keys(&self) -> Vec<&str> {
192192
self.0
193193
.keys()

quickwit/quickwit-search/src/cluster_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl ClusterClient {
138138

139139
/// Attempts to store a given key value pair within the cluster.
140140
///
141-
/// Tries to replicate the pair to [`TARGET_NUM_REPLICATION`] nodes, but this function may fail
141+
/// Tries to replicate the pair to `TARGET_NUM_REPLICATION` nodes, but this function may fail
142142
/// silently (e.g if no client was available). Even in case of success, this storage is not
143143
/// persistent. For instance during a rolling upgrade, all replicas will be lost as there is no
144144
/// mechanism to maintain the replication count.

quickwit/quickwit-storage/src/storage_resolver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl fmt::Debug for StorageResolver {
4343
}
4444

4545
impl StorageResolver {
46-
/// Creates an empty [`StorageResolverBuilder`].
46+
/// Creates an empty `StorageResolverBuilder`.
4747
pub fn builder() -> StorageResolverBuilder {
4848
StorageResolverBuilder::default()
4949
}

0 commit comments

Comments
 (0)