Closed yayza closed 2 years ago
+666 lines... 😮
I'll probably bump the version to 2.1 after this PR as it's quite a cleanup and tidy up.
Is this ready to merge or do you still need to tidy things up?
+666 lines... 😮
I'll probably bump the version to 2.1 after this PR as it's quite a cleanup and tidy up.
Is this ready to merge or do you still need to tidy things up?
I had to do a double take myself lol. 641 lines were generated by npm and added to the package-lock.json file. (Usually when someone changes package.json or runs npm install
and npm installs the latest versions of the required packages their own dependencies might have changed as well so those get added/updated to package-lock.json)
EDIT: If you're going to bump the version, I'll add some more code splits tomorrow to that lib folder. (Or you can merge this one since is config specific and I can put that in a seperate PR)
Looking really good. I'm liking this modular approach refactor.
Thanks ! Almost finished with this one , gonna clean it up tomorrow and it'll be ready to merge.
General
npm start
in terminal to load the main fileConfig
sendNextPruneTimeInSeconds
to config. This option takes a bool and is used to specify whether
we should send the remaining amount of time a server has left (in secionds) before it's removed from the list.
This is useful when a server is added to the list and crashes too soon and loses it's uuid, when it tries
to re-add itself it will know now how long to wait before retrying the /add
path. Logger
Express
New Files
sendNextPruneTimeInSeconds
feature explained in the Config sectionlistServer.js
All good with this? I'll push it if you're good to go.
Yup, it's ready now !
Made some changes to how the configuration is done:
config.ini
with an object inlib/config.js
listServer.js
now loads the new config file via arequire
moduletranslateConfigOptionToBool
, as it's not required anymoremulti-ini
dependency, as it's not required anymore eitherOther Changes:
ipv4
to and set default as true to listen for ipv4 only