mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Add rust implementation
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
(async () => {
|
||||
const http = await import('http');
|
||||
|
||||
const healthCheck = http.request("http://localhost:8080/healthcheck", (res) => {
|
||||
console.log(`HEALTHCHECK STATUS: ${res.statusCode}`);
|
||||
if (res.statusCode == 200) {
|
||||
process.exit(0);
|
||||
}
|
||||
else {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
|
||||
healthCheck.on('error', function (err) {
|
||||
console.error('ERROR');
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
healthCheck.end();
|
||||
})();
|
||||
Reference in New Issue
Block a user