Skip to content

Commit 450c8a3

Browse files
RUST-2048 Update specification links (#1251)
1 parent b8e0ca7 commit 450c8a3

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

benchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Rust Driver Benchmark Suite
22

3-
This suite implements the benchmarks described in this (spec)[https://github.com/mongodb/specifications/blob/master/source/benchmarking/benchmarking.rst].
3+
This suite implements the benchmarks described in this (spec)[https://github.com/mongodb/specifications/blob/master/source/benchmarking/benchmarking.md].
44

55
In order to run the microbenchmarks, first run `./download-data.sh`. (NOTE: the data for the deeply nested BSON encoding and decoding is
66
currently broken, so these benchmarks will not be runnable until that's fixed).

src/change_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::{
3535
///
3636
/// `ChangeStream`s are "resumable", meaning that they can be restarted at a given place in the
3737
/// stream of events. This is done automatically when the `ChangeStream` encounters certain
38-
/// ["resumable"](https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#resumable-error)
38+
/// ["resumable"](https://specifications.readthedocs.io/en/latest/change-streams/change-streams/#resumable-error)
3939
/// errors, such as transient network failures. It can also be done manually by passing
4040
/// a [`ResumeToken`] retrieved from a past event into either the
4141
/// [`resume_after`](crate::action::Watch::resume_after) or

src/client/csfle/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717
/// collection. Automatic encryption is not supported for operations on a database or view, and
1818
/// operations that are not bypassed will result in error (see [libmongocrypt: Auto Encryption
1919
/// Allow-List](
20-
/// https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/client-side-encryption.rst#libmongocrypt-auto-encryption-allow-list
20+
/// https://specifications.readthedocs.io/en/latest/client-side-encryption/client-side-encryption/#libmongocrypt-auto-encryption-allow-list
2121
/// )). To bypass automatic encryption for all operations, set bypassAutoEncryption=true in
2222
/// AutoEncryptionOpts.
2323
#[derive(Debug, Clone, Deserialize)]

src/event/sdam.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub use crate::sdam::public::TopologyType;
1717
pub use topology_description::TopologyDescription;
1818

1919
/// A description of the most up-to-date information known about a server. Further details can be
20-
/// found in the [Server Discovery and Monitoring specification](https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst).
20+
/// found in the [Server Discovery and Monitoring specification](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring/).
2121
pub type ServerDescription = crate::sdam::public::ServerInfo<'static>;
2222

2323
/// Published when a server description changes.

src/event/sdam/topology_description.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{
1010
};
1111

1212
/// A description of the most up-to-date information known about a topology. Further details can
13-
/// be found in the [Server Discovery and Monitoring specification](https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst).
13+
/// be found in the [Server Discovery and Monitoring specification](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring/).
1414
#[derive(Clone, derive_more::Display)]
1515
#[display(fmt = "{}", description)]
1616
pub struct TopologyDescription {

src/sdam/description/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub(crate) struct ServerDescription {
142142
}
143143

144144
// Server description equality has a specific notion of what fields in a hello command response
145-
// should be compared (https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#serverdescription).
145+
// should be compared (https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring/#server-description-equality).
146146
fn hello_command_eq(a: &HelloCommandResponse, b: &HelloCommandResponse) -> bool {
147147
a.server_type() == b.server_type()
148148
&& a.min_wire_version == b.min_wire_version

src/sdam/public.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::{
1313
};
1414

1515
/// A description of the most up-to-date information known about a server. Further details can be
16-
/// found in the [Server Discovery and Monitoring specification](https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst).
16+
/// found in the [Server Discovery and Monitoring specification](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring/).
1717
#[derive(Clone)]
1818
pub struct ServerInfo<'a> {
1919
pub(crate) description: Cow<'a, ServerDescription>,

src/sdam/srv_polling/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async fn no_results() {
121121
}
122122

123123
// SRV polling is not done for load-balanced clusters (as per spec at
124-
// https://github.com/mongodb/specifications/blob/master/source/polling-srv-records-for-mongos-discovery/tests/README.rst#test-that-srv-polling-is-not-done-for-load-balalanced-clusters).
124+
// https://github.com/mongodb/specifications/tree/master/source/polling-srv-records-for-mongos-discovery/tests#9-test-that-srv-polling-is-not-done-for-load-balalanced-clusters).
125125
#[tokio::test]
126126
async fn load_balanced_no_srv_polling() {
127127
if get_client_options().await.load_balanced != Some(true) {

src/sync/change_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use super::ClientSession;
1818
///
1919
/// `ChangeStream`s are "resumable", meaning that they can be restarted at a given place in the
2020
/// stream of events. This is done automatically when the `ChangeStream` encounters certain
21-
/// ["resumable"](https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#resumable-error)
21+
/// ["resumable"](https://specifications.readthedocs.io/en/latest/change-streams/change-streams/#resumable-error)
2222
/// errors, such as transient network failures. It can also be done manually by passing
2323
/// a [`ResumeToken`] retrieved from a past event into either the
2424
/// [`resume_after`](crate::action::Watch::resume_after) or

0 commit comments

Comments
 (0)