@@ -689,11 +689,15 @@ pub struct ClientOptions {
689689
690690 /// The maximum number of retries to perform when overload errors are encountered. Defaults to
691691 /// 2.
692+ ///
693+ /// This option only has an effect with MongoDB Atlas server version 9.0 and above.
692694 pub max_adaptive_retries : Option < u32 > ,
693695
694696 /// Whether to enable overload retargeting when overload errors are encountered. When overload
695697 /// retargeting is enabled, the server on which an overload error occurs is deprioritized
696698 /// when selecting a server for a retry attempt. Defaults to false.
699+ ///
700+ /// This option only has an effect with MongoDB Atlas server version 9.0 and above.
697701 pub enable_overload_retargeting : Option < bool > ,
698702
699703 /// Information from the SRV URI that generated these client options, if applicable.
@@ -1088,11 +1092,15 @@ pub struct ConnectionString {
10881092
10891093 /// The maximum number of retries to perform when overload errors are encountered. Defaults to
10901094 /// 2.
1095+ ///
1096+ /// This option only has an effect with MongoDB Atlas server version 9.0 and above.
10911097 pub max_adaptive_retries : Option < u32 > ,
10921098
10931099 /// Whether to enable overload retargeting when overload errors are encountered. When overload
10941100 /// retargeting is enabled, the server on which an overload error occurs is deprioritized
10951101 /// when selecting a server for a retry attempt. Defaults to false.
1102+ ///
1103+ /// This option only has an effect with MongoDB Atlas server version 9.0 and above.
10961104 pub enable_overload_retargeting : Option < bool > ,
10971105
10981106 #[ serde( serialize_with = "serde_util::serialize_duration_option_as_int_millis" ) ]
0 commit comments