-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: initializing overseer (MAPCO-4436) #1
Conversation
src/serverBuilder.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file can only amount to that:
import express from 'express';
import { injectable } from 'tsyringe';
import { collectMetricsExpressMiddleware } from '@map-colonies/telemetry';
@injectable()
export class ServerBuilder {
private readonly serverInstance: express.Application;
public constructor() {
this.serverInstance = express();
}
public build(): express.Application {
this.serverInstance.use(collectMetricsExpressMiddleware({})); // make sure the service responding with the metrics (/metrics)
return this.serverInstance;
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed unnecessary builds.
Please change the commit to 'refactor' + fix the typo 'initialling' => 'initializing' |
…pe defenition removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Removing unnecessary rest-api boilerplate, initialling overseer worker service