Browse Source

Remove the requirement of overriding boot and shutdown methods in the microservice package

dev
David Ludwig 4 years ago
parent
commit
d37ee95e37
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      packages/microservice/src/InternalService.ts

+ 6
- 2
packages/microservice/src/InternalService.ts View File

@ -32,12 +32,16 @@ export abstract class InternalService<T extends Microservice = Microservice>
/**
* Boot the service
*/
public abstract boot(): Promise<void>;
public async boot(): Promise<void> {
// no-op
}
/**
* Shut the application down
*/
public abstract shutdown(): Promise<void>;
public async shutdown(): Promise<void> {
// no-op
}
// Miscellaneous ------------------------------------------------------------------------------


Loading…
Cancel
Save