File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 2
2
* Health Check Service
3
3
*/
4
4
5
- const errors = require ( 'common-errors' )
6
- const helper = require ( '../common/helper' )
5
+ // const errors = require('common-errors')
6
+ // const helper = require('../common/helper')
7
7
8
8
/**
9
9
* Check if the elasticsearch connection is active
10
10
*/
11
11
12
12
function * check ( ) {
13
- const esClient = helper . getEsClient ( )
13
+ // const esClient = helper.getEsClient()
14
14
15
- try {
16
- yield esClient . ping ( {
17
- requestTimeout : 10000
18
- } )
19
- } catch ( e ) {
20
- throw new errors . HttpStatusError ( 503 , 'Elasticsearch instance cannot be reached' )
21
- }
15
+ // try {
16
+ // yield esClient.ping({
17
+ // requestTimeout: 10000
18
+ // })
19
+
20
+ // } catch (e) {
21
+ // throw new errors.HttpStatusError(503, 'Elasticsearch instance cannot be reached')
22
+ // }
22
23
23
24
return {
24
25
checksRun : 1
You can’t perform that action at this time.
0 commit comments