[misc] rewrite: squash history

- promisify
- merge health check for single node and cluster
- replace the first multi with simple SET in health check
- reworked health check with o-error context/stack-traces for failures
- drop console.error on health check timeout, consumer logs the error
- cleanup unwrapping of ioredis multi result
- Promise support for multi.exec

This has been squashed from das7pad s fork.
REF: b3dd8c5cf4cc6482fd450e6bb67013508844f93f
This commit is contained in:
Jakob Ackermann
2020-11-10 10:34:06 +00:00
parent ccf4bb1e0e
commit aabe2d18b9
4 changed files with 149 additions and 131 deletions
+5 -3
View File
@@ -11,12 +11,14 @@
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
"test": "mocha --recursive test/unit/src/"
},
"peerDependencies": {
"@overleaf/o-error": "^3.1.0"
},
"dependencies": {
"coffee-script": "1.8.0",
"ioredis": "~4.17.3",
"underscore": "1.7.0"
"ioredis": "~4.17.3"
},
"devDependencies": {
"@overleaf/o-error": "^3.1.0",
"chai": "^4.2.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",