From 99559d8fda5bb0a469a012594084d8b34b4d54ec Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sun, 21 Mar 2021 21:24:48 -0700 Subject: [PATCH] deps: remove graceful-fs graceful-fs was added at a time when channel state was stored in flatfiles that could become corrupted if enough concurrent saves occurred to hit the ulimit for maxfds (EMFILE). Saving channels this way is no longer supported, so it shouldn't be an issue anymore. --- package.json | 1 - src/channel/channel.js | 2 +- src/logger.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a8114eab..8d8b2b86 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "cytubefilters": "github:calzoneman/cytubefilters#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5", "express": "^4.17.1", "express-minify": "^1.0.0", - "graceful-fs": "^4.1.2", "json-typecheck": "^0.1.3", "knex": "^0.20.3", "lodash": "^4.17.21", diff --git a/src/channel/channel.js b/src/channel/channel.js index f60b1d5a..744884fe 100644 --- a/src/channel/channel.js +++ b/src/channel/channel.js @@ -1,6 +1,6 @@ var ChannelModule = require("./module"); var Flags = require("../flags"); -var fs = require("graceful-fs"); +var fs = require("fs"); var path = require("path"); var sio = require("socket.io"); var db = require("../database"); diff --git a/src/logger.js b/src/logger.js index fc8caca0..7cf9067c 100644 --- a/src/logger.js +++ b/src/logger.js @@ -1,4 +1,4 @@ -var fs = require("graceful-fs"); +var fs = require("fs"); var path = require("path"); import { Logger as JsliLogger, LogLevel } from '@calzoneman/jsli'; import jsli from '@calzoneman/jsli';