@@ -110,7 +110,7 @@ def driver(uri, **config):
110110class SecurityPlan (object ):
111111
112112 @classmethod
113- def build (cls , address , ** config ):
113+ def build (cls , ** config ):
114114 encrypted = config .get ("encrypted" , None )
115115 if encrypted is None :
116116 encrypted = _encryption_default ()
@@ -188,7 +188,7 @@ class DirectDriver(Driver):
188188
189189 def __init__ (self , address , ** config ):
190190 self .address = address
191- self .security_plan = security_plan = SecurityPlan .build (address , ** config )
191+ self .security_plan = security_plan = SecurityPlan .build (** config )
192192 self .encrypted = security_plan .encrypted
193193 pool = ConnectionPool (lambda a : connect (a , security_plan .ssl_context , ** config ))
194194 Driver .__init__ (self , pool )
@@ -202,7 +202,7 @@ class RoutingDriver(Driver):
202202 """
203203
204204 def __init__ (self , address , ** config ):
205- self .security_plan = security_plan = SecurityPlan .build (address , ** config )
205+ self .security_plan = security_plan = SecurityPlan .build (** config )
206206 self .encrypted = security_plan .encrypted
207207 if not security_plan .routing_compatible :
208208 # this error message is case-specific as there is only one incompatible
0 commit comments