File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict' ;
22
33const ActorSystem = require ( '../system' ) ;
4- const http = require ( 'http' ) ;
4+ const http = require ( 'node: http' ) ;
55
66const URL = 'http://localhost:8000/' ;
77const INTERVAL = 2000 ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const ActorSystem = require ( '../system' ) ;
4- const http = require ( 'http' ) ;
4+ const http = require ( 'node: http' ) ;
55
66const URL = 'http://localhost:8000/' ;
77const INTERVAL = 2000 ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const cp = require ( 'child_process' ) ;
3+ const cp = require ( 'node: child_process' ) ;
44
55const actors = new Map ( ) ;
66
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const ActorSystem = require ( '../system' ) ;
4- const http = require ( 'http' ) ;
4+ const http = require ( 'node: http' ) ;
55
66const URL = 'http://localhost:8000/' ;
77const INTERVAL = 2000 ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const threads = require ( 'worker_threads' ) ;
3+ const threads = require ( 'node: worker_threads' ) ;
44const { Worker } = threads ;
55
66const actors = new Map ( ) ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const threads = require ( 'worker_threads' ) ;
3+ const threads = require ( 'node: worker_threads' ) ;
44const { isMainThread } = threads ;
55
66module . exports = isMainThread ? require ( './master' ) : require ( './worker' ) ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const threads = require ( 'worker_threads' ) ;
3+ const threads = require ( 'node: worker_threads' ) ;
44const master = threads . parentPort ;
55
66class ActorSystem {
You can’t perform that action at this time.
0 commit comments