refactor health checks and prettify/lint
This commit is contained in:
@@ -265,12 +265,9 @@ const main = async (): Promise<void> => {
|
||||
}
|
||||
};
|
||||
|
||||
app.get(
|
||||
'/health',
|
||||
handleHealthCheck(2 * WS_FALLBACK_FETCH_INTERVAL, dlobProvider)
|
||||
);
|
||||
app.get('/health', handleHealthCheck(dlobProvider));
|
||||
app.get('/startup', handleStartup);
|
||||
app.get('/', handleHealthCheck(2 * WS_FALLBACK_FETCH_INTERVAL, dlobProvider));
|
||||
app.get('/', handleHealthCheck(dlobProvider));
|
||||
|
||||
app.get('/priorityFees', async (req, res, next) => {
|
||||
try {
|
||||
@@ -1065,4 +1062,4 @@ async function recursiveTryCatch(f: () => Promise<void>) {
|
||||
|
||||
recursiveTryCatch(() => main());
|
||||
|
||||
export { commitHash, driftClient, driftEnv, endpoint, sdkConfig, wsEndpoint };
|
||||
export { commitHash, driftClient, driftEnv, endpoint, sdkConfig, wsEndpoint };
|
||||
|
||||
Reference in New Issue
Block a user