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 "." ;
2
2
import RedisCommandsQueue from "./commands-queue" ;
3
3
import { RedisArgument } from "../.." ;
4
4
import { isIP } from "net" ;
@@ -183,14 +183,15 @@ export default class EnterpriseMaintenanceManager {
183
183
184
184
dbgMaintenance ( "Creating new tmp client" ) ;
185
185
const start = performance . now ( ) ;
186
- const tmpClient = this . #client . duplicate ( {
187
- maintPushNotifications : "disabled" ,
186
+ const options = ( {
187
+ ... this . #options ,
188
188
socket : {
189
189
...this . #options. socket ,
190
190
host,
191
191
port,
192
- } ,
192
+ }
193
193
} ) ;
194
+ const tmpClient = RedisClient . factory ( options ) ( options ) ;
194
195
dbgMaintenance ( `Tmp client created in ${ ( performance . now ( ) - start ) . toFixed ( 2 ) } ms` ) ;
195
196
dbgMaintenance ( `Connecting tmp client: ${ host } :${ port } ` ) ;
196
197
await tmpClient . connect ( ) ;
You can’t perform that action at this time.
0 commit comments