fix(restart): Removing code the auto-restarts app after 2 hours

This commit is contained in:
Chris Troutner
2022-01-20 07:56:40 -08:00
parent 5fc72be10c
commit 34a4072384
-7
View File
@@ -98,13 +98,6 @@ class Server {
await controllers.attachControllers(app)
}
// ipfs-coord has a memory leak. This app shuts down after 4 hours. It
// expects to be run by Docker or pm2, which can automatically restart
// the app.
setTimeout(function () {
process.exit(0)
}, 60000 * 60 * 2) // 2 hours
return app
} catch (err) {
console.error('Could not start server. Error: ', err)