fix online counter broadcast between shards

This commit is contained in:
HF 2022-10-03 23:34:40 +02:00
parent 375ac9bc09
commit 8991611ce7

View File

@ -276,12 +276,7 @@ class MessageBroker extends SocketEvents {
break;
}
case ONLINE_COUNTER_OP: {
const data = new DataView(
buffer.buffer,
buffer.byteOffset,
buffer.length,
);
const cnt = hydrateOnlineCounter(data);
const cnt = hydrateOnlineCounter(buffer);
this.updateShardOnlineCounter(shard, cnt);
break;
}