Skip to content

Commit cfd49e3

Browse files
committed
fix default port for metrics
1 parent 9951aeb commit cfd49e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
},
5454
"devDependencies": {
5555
"@types/cookie-parser": "1.4.2",
56+
"@types/debug": "^4.1.5",
5657
"@types/express": "^4.17.12",
5758
"@types/express-list-endpoints": "^4.0.1",
5859
"@types/hbs": "^4.0.1",

src/middleware/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Options = {
2525
createServer?: boolean
2626
};
2727

28-
const setupMetricService = ({ port }: Options = { port: 9082 }) => {
28+
const setupMetricService = ({ port = 9082 }: Options = {}) => {
2929
// Setup server on a second port to display metrics
3030
const metricApp = express();
3131
const metricServer = http.createServer(metricApp);

0 commit comments

Comments
 (0)