diff --git a/app/ipfs.js b/app/ipfs.js index 4a69c65..056a087 100644 --- a/app/ipfs.js +++ b/app/ipfs.js @@ -86,8 +86,8 @@ async function setupIpfs() { async function ipfsHealthCheack(api, name = 'ipfs') { try { - if (!api || !api.pid) throw new ConnectionError({ name }) - const { spawnfile, pid, killed } = api + if (!api.ipfs || !api.ipfs.pid) throw new ConnectionError({ name }) + const { spawnfile, pid, killed } = api.ipfs return { name, diff --git a/app/server.js b/app/server.js index 9d1042a..e200a55 100644 --- a/app/server.js +++ b/app/server.js @@ -14,8 +14,7 @@ async function createHttpServer() { const sw = new ServiceWatcher({ substrate: { healthCheck: () => nodeHealthCheck({ isReady: false }) }, - // TODO temporary commenting out so I can investigate the health helch foor ipfs - // ipfs: { healthCheck: () => ipfsHealthCheack(ipfs) }, + ipfs: { healthCheck: () => ipfsHealthCheack(ipfs) }, }) await setupKeyWatcher({