perf: remove AsyncResource usage
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPIncomingRequestService.ts
index 4b27f9d82f8de91b38bd1a19c4a826ebe6800d6b..c93129bcfadbca7e1d0e0c3454e5ed7b8c092885 100644 (file)
@@ -1,5 +1,3 @@
-import { AsyncResource } from 'node:async_hooks';
-
 import Ajv, { type JSONSchemaType, type ValidateFunction } from 'ajv';
 import ajvFormats from 'ajv-formats';
 
@@ -18,7 +16,7 @@ import { logger, setDefaultErrorParams } from '../../utils';
 
 const moduleName = 'OCPPIncomingRequestService';
 
-export abstract class OCPPIncomingRequestService extends AsyncResource {
+export abstract class OCPPIncomingRequestService {
   private static instance: OCPPIncomingRequestService | null = null;
   private readonly version: OCPPVersion;
   private readonly ajv: Ajv;
@@ -26,7 +24,6 @@ export abstract class OCPPIncomingRequestService extends AsyncResource {
   protected abstract jsonSchemas: Map<IncomingRequestCommand, JSONSchemaType<JsonType>>;
 
   protected constructor(version: OCPPVersion) {
-    super(moduleName);
     this.version = version;
     this.ajv = new Ajv({
       keywords: ['javaType'],