From ab45f3f531dd0d52996cda756b63d276faddab54 Mon Sep 17 00:00:00 2001 From: Roy Razon Date: Wed, 26 Jul 2023 16:46:14 +0300 Subject: [PATCH] tunnel server: revert await in metrics --- tunnel-server/src/metrics.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tunnel-server/src/metrics.ts b/tunnel-server/src/metrics.ts index d4d90420..1dc47fce 100644 --- a/tunnel-server/src/metrics.ts +++ b/tunnel-server/src/metrics.ts @@ -19,8 +19,9 @@ export function runMetricsServer(port: number) { const app = fastify() app.get('/metrics', async (_request, reply) => { - await reply.header('Content-Type', register.contentType) - await reply.send(await register.metrics()) + // TODO: changing the "void" below to await hangs, find out why and fix + void reply.header('Content-Type', register.contentType) + void reply.send(await register.metrics()) }) return app.listen({ host: '0.0.0.0',