Refactoring
This commit is contained in:
		
							parent
							
								
									7f700d42c8
								
							
						
					
					
						commit
						e086c68115
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -4,9 +4,6 @@
 | 
			
		|||
 | 
			
		||||
Error.stackTraceLimit = Infinity;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Module dependencies
 | 
			
		||||
 */
 | 
			
		||||
import * as fs from 'fs';
 | 
			
		||||
import * as os from 'os';
 | 
			
		||||
import * as cluster from 'cluster';
 | 
			
		||||
| 
						 | 
				
			
			@ -141,9 +138,7 @@ function spawnWorkers(onComplete: any) {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	// On all workers started
 | 
			
		||||
	progress.on('complete', () => {
 | 
			
		||||
		onComplete();
 | 
			
		||||
	});
 | 
			
		||||
	progress.on('complete', onComplete);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Listen new workers
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue