@@ -64,12 +64,12 @@ export default class EnterpriseMaintenanceManager {
6464 #client: Client ;
6565
6666 static setupDefaultMaintOptions ( options : RedisClientOptions ) {
67- if ( options . maintPushNotifications === undefined ) {
68- options . maintPushNotifications =
67+ if ( options . maintNotifications === undefined ) {
68+ options . maintNotifications =
6969 options ?. RESP === 3 ? "auto" : "disabled" ;
7070 }
71- if ( options . maintMovingEndpointType === undefined ) {
72- options . maintMovingEndpointType = "auto" ;
71+ if ( options . maintEndpointType === undefined ) {
72+ options . maintEndpointType = "auto" ;
7373 }
7474 if ( options . maintRelaxedSocketTimeout === undefined ) {
7575 options . maintRelaxedSocketTimeout = 10000 ;
@@ -87,7 +87,7 @@ export default class EnterpriseMaintenanceManager {
8787 | { cmd : Array < RedisArgument > ; errorHandler : ( error : Error ) => void }
8888 | undefined
8989 > {
90- if ( options . maintPushNotifications === "disabled" ) return ;
90+ if ( options . maintNotifications === "disabled" ) return ;
9191
9292 const movingEndpointType = await determineEndpoint ( tls , host , options ) ;
9393 return {
@@ -100,7 +100,7 @@ export default class EnterpriseMaintenanceManager {
100100 ] ,
101101 errorHandler : ( error : Error ) => {
102102 dbgMaintenance ( "handshake failed:" , error ) ;
103- if ( options . maintPushNotifications === "enabled" ) {
103+ if ( options . maintNotifications === "enabled" ) {
104104 throw error ;
105105 }
106106 } ,
@@ -189,7 +189,7 @@ export default class EnterpriseMaintenanceManager {
189189 // reconnect to its currently configured endpoint after half of the grace
190190 // period that was communicated by the server is over.
191191 if ( url === null ) {
192- assert ( this . #options. maintMovingEndpointType === "none" ) ;
192+ assert ( this . #options. maintEndpointType === "none" ) ;
193193 assert ( this . #options. socket !== undefined ) ;
194194 assert ( "host" in this . #options. socket ) ;
195195 assert ( typeof this . #options. socket . host === "string" ) ;
@@ -329,12 +329,12 @@ async function determineEndpoint(
329329 host : string ,
330330 options : RedisClientOptions ,
331331) : Promise < MovingEndpointType > {
332- assert ( options . maintMovingEndpointType !== undefined ) ;
333- if ( options . maintMovingEndpointType !== "auto" ) {
332+ assert ( options . maintEndpointType !== undefined ) ;
333+ if ( options . maintEndpointType !== "auto" ) {
334334 dbgMaintenance (
335- `Determine endpoint type: ${ options . maintMovingEndpointType } ` ,
335+ `Determine endpoint type: ${ options . maintEndpointType } ` ,
336336 ) ;
337- return options . maintMovingEndpointType ;
337+ return options . maintEndpointType ;
338338 }
339339
340340 const ip = isIP ( host ) ? host : ( await lookup ( host , { family : 0 } ) ) . address ;
0 commit comments