Skip to content

Commit

Permalink
BUGFIX: fix ipfs properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3op2 committed May 17, 2022
1 parent 2ec627b commit 52a0cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/ipfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 52a0cb9

Please sign in to comment.