🔧 Simplify error handling in healthCheck function by removing unused error parameter
This commit is contained in:
@@ -168,7 +168,7 @@ async function healthCheck(host, port, retries = 5) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch {
|
||||||
if (i < retries - 1) {
|
if (i < retries - 1) {
|
||||||
console.log(
|
console.log(
|
||||||
`⏳ Health check attempt ${i + 1}/${retries} failed, retrying in 3s...`
|
`⏳ Health check attempt ${i + 1}/${retries} failed, retrying in 3s...`
|
||||||
|
|||||||
Reference in New Issue
Block a user