Skip to content

Commit

Permalink
tunnel server: revert await in metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Jul 26, 2023
1 parent 4b9e414 commit ab45f3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tunnel-server/src/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ab45f3f

Please sign in to comment.