Make filename = default exported class name.
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 25 Jan 2021 08:28:13 +0000 (09:28 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 25 Jan 2021 08:28:13 +0000 (09:28 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/start.ts
src/worker/WorkerFactory.ts
src/worker/WorkerPool.ts
src/worker/WorkerSet.ts
src/worker/Wrk.ts [moved from src/worker/Worker.ts with 100% similarity]

index aa3cfdeff96af62b59895cc9cefab0dbed60fa4f..90eb5161fc4c85b3c3a6330e6398b7d82102a2ef 100644 (file)
@@ -1,7 +1,7 @@
 import Configuration from './utils/Configuration';
 import WorkerData from './types/WorkerData';
 import WorkerFactory from './worker/WorkerFactory';
-import Wrk from './worker/Worker';
+import Wrk from './worker/Wrk';
 
 class Bootstrap {
   static start() {
index 13880b2f81dd8f16c99a97f26949bc44c51f8be6..067188d846401d13c3a76c1bdff6236442de6859 100644 (file)
@@ -1,7 +1,7 @@
 import Configuration from '../utils/Configuration';
 import WorkerPool from './WorkerPool';
 import WorkerSet from './WorkerSet';
-import Wrk from './Worker';
+import Wrk from './Wrk';
 
 export default class WorkerFactory {
   public static getWorkerImpl(workerScript: string): Wrk {
index d04926e7d78a30a3e338c9fd9446eb8fbb148022..f1a6cc1f7a7acd0fc3e60bce255b5b3a4e2b3a48 100644 (file)
@@ -3,7 +3,7 @@ import Constants from '../utils/Constants';
 import Pool from 'worker-threads-pool';
 import Utils from '../utils/Utils';
 import WorkerData from '../types/WorkerData';
-import Wrk from './Worker';
+import Wrk from './Wrk';
 
 export default class WorkerPool extends Wrk {
   private pool: Pool;
index a8aa8a37cf5820a5097689ef36b7d58ae59f9ed6..50b99f027a94ff7f6417f5e51dbdb009e6b03282 100644 (file)
@@ -2,7 +2,7 @@ import Constants from '../utils/Constants';
 import Utils from '../utils/Utils';
 import { Worker } from 'worker_threads';
 import WorkerData from '../types/WorkerData';
-import Wrk from './Worker';
+import Wrk from './Wrk';
 
 export default class WorkerSet extends Wrk {
   public maxElementsPerWorker: number;
similarity index 100%
rename from src/worker/Worker.ts
rename to src/worker/Wrk.ts