diff --git a/src/createApp.js b/src/createApp.js index 386f7772e2ba0773c071d3392c4b66de61a52017..26888557fb4c72419c4592b2ab39a34081f6cedf 100644 --- a/src/createApp.js +++ b/src/createApp.js @@ -42,17 +42,6 @@ module.exports = () => { app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument)) app.use('/swagger.json', (req, res) => res.json(swaggerDocument)) - const isReady = async () => { - await fetchManifest() - if (manifestCache.length === 0) throw new Error('No manifests found.') - } - - const readinessCheck = new health.ReadinessCheck('readinessCheck', isReady) - healthCheck.registerReadinessCheck(readinessCheck) - - const livenessCheck = new health.LivenessCheck('livenessCheck', isReady) - healthCheck.registerLivenessCheck(livenessCheck) - const urls = yaml.load(fs.readFileSync('./config/manifests/urls.yaml', 'utf8')).manifests let manifestCache = []