remove remporary debugging stuff

This commit is contained in:
HF 2023-03-18 15:27:26 +01:00
parent 2437b44db7
commit 4b550920ef
2 changed files with 0 additions and 14 deletions

View File

@ -52,10 +52,6 @@ persistStore(store, {}, () => {
store.dispatch(fetchMe());
socketClient.initialize(store, pixelTransferController, getRenderer);
// for debugging
window.ppStore = store;
window.ppRender = getRenderer;
});
(function load() {

View File

@ -350,9 +350,6 @@ class SocketServer {
* have to reset it to avoid onClose to
* do it again.
*/
if (ws.user.id === 1) {
console.log('DEBUG killAllWsByUerIp for hf');
}
ws.chunkCnt = 0;
ws.terminate();
amount += 1;
@ -639,9 +636,6 @@ class SocketServer {
}
deleteChunk(chunkid, ws) {
if (ws.user.id === 1) {
console.log('DEBUG delete chunk for hf', chunkid);
}
ws.chunkCnt -= 1;
if (!this.CHUNK_CLIENTS.has(chunkid)) return;
const clients = this.CHUNK_CLIENTS.get(chunkid);
@ -653,10 +647,6 @@ class SocketServer {
if (!ws.chunkCnt) {
return;
}
if (ws.user.id === 1) {
console.log('DEBUG delete all chunk for hf');
}
for (const client of this.CHUNK_CLIENTS.values()) {
const pos = client.indexOf(ws);
if (~pos) {