fix online counter broadcast between shards
This commit is contained in:
parent
375ac9bc09
commit
8991611ce7
|
@ -276,12 +276,7 @@ class MessageBroker extends SocketEvents {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ONLINE_COUNTER_OP: {
|
case ONLINE_COUNTER_OP: {
|
||||||
const data = new DataView(
|
const cnt = hydrateOnlineCounter(buffer);
|
||||||
buffer.buffer,
|
|
||||||
buffer.byteOffset,
|
|
||||||
buffer.length,
|
|
||||||
);
|
|
||||||
const cnt = hydrateOnlineCounter(data);
|
|
||||||
this.updateShardOnlineCounter(shard, cnt);
|
this.updateShardOnlineCounter(shard, cnt);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user