fof async

This commit is contained in:
Lamp 2018-12-07 23:14:05 -08:00
parent 8f02d2ac3f
commit 0c553d2f00
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ var zlib = require('zlib');
// Collects inputted messages to a file and gzips them every time it reaches 8mb,
// and sends it to the output callback function.
// For recording websocket data to a discord channel.
module.exports = async function createWSMessageCollector(output) { // output func must be async
module.exports = function createWSMessageCollector(output) { // output func must be async
var filepath = os.tmpdir() + "/" + Math.random().toString(36).substring(2);
var size = 0;
var startDate = new Date();