Skip to content

Commit

Permalink
fix(metrics): conver to async function to allow usage of await
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaiSchmid committed Jul 16, 2022
1 parent f6c0b5f commit 1b79f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ class APIServer {
);
});

this.server.get('/metrics', (req, res, next) => {
this.server.get('/metrics', async (req, res, next) => {
await promClient.register
.metrics()
.then(metrics => res.end(metrics))
Expand Down

0 comments on commit 1b79f70

Please sign in to comment.