File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -856,8 +856,6 @@ def __init__(
856
856
"condition_class" : condition_class ,
857
857
}
858
858
)
859
- if not is_srv :
860
- self ._init_based_on_options (seeds , srv_max_hosts , srv_service_name )
861
859
862
860
super ().__init__ (
863
861
self ._options .codec_options ,
@@ -866,6 +864,9 @@ def __init__(
866
864
self ._options .read_concern ,
867
865
)
868
866
867
+ if not is_srv :
868
+ self ._init_based_on_options (seeds , srv_max_hosts , srv_service_name )
869
+
869
870
self ._opened = False
870
871
self ._closed = False
871
872
if not is_srv :
Original file line number Diff line number Diff line change @@ -854,8 +854,6 @@ def __init__(
854
854
"condition_class" : condition_class ,
855
855
}
856
856
)
857
- if not is_srv :
858
- self ._init_based_on_options (seeds , srv_max_hosts , srv_service_name )
859
857
860
858
super ().__init__ (
861
859
self ._options .codec_options ,
@@ -864,6 +862,9 @@ def __init__(
864
862
self ._options .read_concern ,
865
863
)
866
864
865
+ if not is_srv :
866
+ self ._init_based_on_options (seeds , srv_max_hosts , srv_service_name )
867
+
867
868
self ._opened = False
868
869
self ._closed = False
869
870
if not is_srv :
You can’t perform that action at this time.
0 commit comments