Skip to content

Commit 25b258f

Browse files
committed
comply to new pn format
1 parent 71a12a9 commit 25b258f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ export default class EnterpriseMaintenanceManager extends EventEmitter {
4848
}
4949

5050
#onPush = (push: Array<any>): boolean => {
51+
dbgMaintenance(push.map(item => item.toString()))
5152
switch (push[0].toString()) {
5253
case PN.MOVING: {
53-
const [_, afterMs, url] = push;
54+
// [ 'MOVING', '17', '15', '54.78.247.156:12075' ]
55+
// ^seq ^after ^new ip
56+
const afterMs = push[2];
57+
const url = push[3];
5458
const [host, port] = url.toString().split(":");
5559
dbgMaintenance('Received MOVING:', afterMs, host, Number(port));
5660
this.#onMoving(afterMs, host, Number(port));

0 commit comments

Comments
 (0)