From 7806b34cfa4f0e0b8aa3efb8e7058ae7bcabf38c Mon Sep 17 00:00:00 2001 From: knotteye Date: Sat, 17 Oct 2020 01:03:20 -0500 Subject: [PATCH] Remove unused code --- src/cluster.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/cluster.ts b/src/cluster.ts index 5de1356..b9288fa 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -8,9 +8,6 @@ import * as strf from "strftime"; import * as ctx from '../node_modules/node-media-server/node_core_ctx'; import * as db from "./database"; import {config} from "./config"; -import { messageRateLimitPresets } from 'dank-twitch-irc'; - -const {readValue, writeValue} = require('@mediafish/amf0'); const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); const { exec, execFile } = require('child_process'); @@ -51,15 +48,6 @@ if (cluster.isMaster) { var server = net.createServer({ pauseOnConnect: true }, function(connection) { if(nextWorker >= workers.length) nextWorker = 0; var worker = workers[nextWorker]; - /*connection.on('data', (chunk) => { - const buff = Buffer.from(chunk); - let offset, value, array = []; - while(true) { - [offset, value] = readValue(buff, offset); - console.log(JSON.stringify(value, null, 4)); - array.push(value); - } - });*/ worker.send('rtmp-session:connection', connection); //send connection to worker }).listen(config['rtmp']['port']);