Skip to content

Commit 4851fcf

Browse files
committed
--wip-- [skip ci]
1 parent d0418eb commit 4851fcf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/client/lib/client/commands-queue.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default class RedisCommandsQueue {
8787
this.#maintenanceCommandTimeout = ms;
8888

8989
let counter = 0;
90+
const total = this.#toWrite.length;
9091

9192
// Overwrite timeouts of all eligible toWrite commands
9293
for(const node of this.#toWrite.nodes()) {
@@ -114,7 +115,7 @@ export default class RedisCommandsQueue {
114115
};
115116
signal.addEventListener('abort', command.timeout.listener, { once: true });
116117
};
117-
dbgMaintenance(`Total of ${counter} timeouts reset to ${ms}`);
118+
dbgMaintenance(`Total of ${counter} of ${total} timeouts reset to ${ms}`);
118119
}
119120

120121
get isPubSubActive() {

packages/client/lib/client/enterprise-maintenance-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ export default class EnterpriseMaintenanceManager {
182182
this.#client._pause();
183183

184184
dbgMaintenance("Creating new tmp client");
185-
const start = performance.now();
185+
let start = performance.now();
186186
const tmpClient = this.#client.duplicate({
187-
maintPushNotifications: "disabled",
188187
socket: {
189188
...this.#options.socket,
190189
host,
@@ -193,8 +192,9 @@ export default class EnterpriseMaintenanceManager {
193192
});
194193
dbgMaintenance(`Tmp client created in ${( performance.now() - start ).toFixed(2)}ms`);
195194
dbgMaintenance(`Connecting tmp client: ${host}:${port}`);
195+
start = performance.now();
196196
await tmpClient.connect();
197-
dbgMaintenance(`Connected to tmp client`);
197+
dbgMaintenance(`Connected to tmp client in ${(performance.now() - start).toFixed(2)}ms`);
198198
// 3 [EVENT] New socket connected
199199

200200
//TODO

0 commit comments

Comments
 (0)