mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
fix(reset): Restarting app after 4 hours, not 8
This commit is contained in:
+2
-2
@@ -94,12 +94,12 @@ class Server {
|
||||
// Attach the other IPFS controllers
|
||||
await controllers.attachControllers(app)
|
||||
|
||||
// ipfs-coord has a memory leak. This app shuts down after 8 hours. It
|
||||
// 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 * 8)
|
||||
}, 60000 * 60 * 4)
|
||||
|
||||
return app
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user