Skip to content

Commit 50692d4

Browse files
committed
unsure: apply timeout relaxation on MOVING as well
1 parent 19c8d6d commit 50692d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default class EnterpriseMaintenanceManager extends EventEmitter {
6262
// 1 [EVENT] MOVING PN received
6363
// 2 [ACTION] Pause writing
6464
this.emit(MAINTENANCE_EVENTS.PAUSE_WRITING);
65+
this.#onMigrating();
6566

6667
const newSocket = new RedisSocket({
6768
...this.#options.socket,
@@ -78,6 +79,7 @@ export default class EnterpriseMaintenanceManager extends EventEmitter {
7879

7980
// 5 + 6
8081
this.emit(MAINTENANCE_EVENTS.RESUME_WRITING, newSocket);
82+
this.#onMigrated();
8183
};
8284

8385
#onMigrating = async () => {

0 commit comments

Comments
 (0)