Skip to content

Commit

Permalink
fix: trying to add healthchecks instead of waiting for gh actions 🕓
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Feb 14, 2022
1 parent 38aa7e7 commit 9915b5e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion nightfall-client/src/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ app.use(cors());
app.use(bodyParser.json({ limit: '2mb' }));
app.use(bodyParser.urlencoded({ limit: '2mb', extended: true }));

app.get('/healthcheck', (req, res) => res.sendStatus(200));
app.use('/deposit', deposit);
app.use('/contract-address', getContractAddress);
app.use('/transfer', transfer);
Expand Down
1 change: 1 addition & 0 deletions nightfall-client/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const main = async () => {
}
initialClientSync().then(async () => {
await startEventQueue(queueManager, eventHandlers);
app.get('/healthcheck', (req, res) => res.sendStatus(200));
});
await mongo.connection(config.MONGO_URL); // get a db connection
app.listen(80);
Expand Down
1 change: 0 additions & 1 deletion nightfall-optimist/src/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ app.use(
}),
);

app.get('/healthcheck', (req, res) => res.sendStatus(200));
app.use('/proposer', proposer);
app.use('/block', block);
app.use('/challenger', challenger);
Expand Down
1 change: 1 addition & 0 deletions nightfall-optimist/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const main = async () => {
// We enqueue a message so that we can actualy trigger the queue.end call even if we havent received anything.
// This helps in the case that we restart client and we are the current proposer.
await enqueueEvent(() => logger.info('Start Queue'), 0);
app.get('/healthcheck', (req, res) => res.sendStatus(200));
});
app.listen(80);
} catch (err) {
Expand Down

0 comments on commit 9915b5e

Please sign in to comment.