add grace period to health check

This commit is contained in:
wphan
2023-12-02 14:02:44 -08:00
parent 0ce6cb4938
commit 12281198e5
2 changed files with 21 additions and 4 deletions

View File

@@ -331,9 +331,12 @@ const main = async () => {
}
};
app.get('/health', handleHealthCheck(slotSource));
app.get(
'/health',
handleHealthCheck(2 * WS_FALLBACK_FETCH_INTERVAL, slotSource)
);
app.get('/startup', handleStartup);
app.get('/', handleHealthCheck(slotSource));
app.get('/', handleHealthCheck(2 * WS_FALLBACK_FETCH_INTERVAL, slotSource));
if (FEATURE_FLAGS.ENABLE_ORDERS_ENDPOINTS) {
app.get('/orders/json/raw', async (_req, res, next) => {