Skip to content

Commit 9e0f934

Browse files
authored
RUST-1002 Allow authentication to all server types except arbiter (#440)
1 parent 2e12767 commit 9e0f934

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/sdam/description/server.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ pub enum ServerType {
3636

3737
impl ServerType {
3838
pub(crate) fn can_auth(self) -> bool {
39-
matches!(
40-
self,
41-
ServerType::Standalone
42-
| ServerType::RsPrimary
43-
| ServerType::RsSecondary
44-
| ServerType::Mongos
45-
)
39+
!matches!(self, ServerType::RsArbiter)
4640
}
4741

4842
pub(crate) fn is_data_bearing(self) -> bool {

0 commit comments

Comments
 (0)