File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed 
packages/client/lib/client Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- import  {  RedisClientOptions  }  from  "." ; 
1+ import  RedisClient ,   {  RedisClientOptions  }  from  "." ; 
22import  RedisCommandsQueue  from  "./commands-queue" ; 
33import  {  RedisArgument  }  from  "../.." ; 
44import  {  isIP  }  from  "net" ; 
@@ -183,14 +183,15 @@ export default class EnterpriseMaintenanceManager {
183183
184184    dbgMaintenance ( "Creating new tmp client" ) ; 
185185    const  start  =  performance . now ( ) ; 
186-     const  tmpClient  =  this . #client . duplicate ( { 
187-       maintPushNotifications :  "disabled" , 
186+     const  options  =  ( { 
187+       ... this . #options , 
188188      socket : { 
189189        ...this . #options. socket , 
190190        host, 
191191        port, 
192-       } , 
192+       } 
193193    } ) ; 
194+     const  tmpClient  =  RedisClient . factory ( options ) ( options ) ; 
194195    dbgMaintenance ( `Tmp client created in ${ (  performance . now ( )  -  start  ) . toFixed ( 2 ) }  ms` ) ; 
195196    dbgMaintenance ( `Connecting tmp client: ${ host }  :${ port }  ` ) ; 
196197    await  tmpClient . connect ( ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments