Skip to content

Commit

Permalink
refactor(SwingSet): unify vat-worker filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 21, 2021
1 parent 09153ed commit 08ccf41
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/SwingSet/src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ export async function makeSwingsetController(
// TODO: after we move away from `-r esm` and use real ES6 modules, point
// this at nodeWorkerSupervisor.js instead of the CJS intermediate
const supercode = require.resolve(
'./kernel/vatManager/nodeWorkerSupervisorCJS.js',
'./kernel/vatManager/supervisor-nodeworker-cjs.js',
);
return new Worker(supercode);
}

// launch a worker in a subprocess (which runs Node.js)
function startSubprocessWorkerNode() {
const supercode = require.resolve(
'./kernel/vatManager/subprocessSupervisor.js',
'./kernel/vatManager/supervisor-subprocess-node.js',
);
return startSubprocessWorker(process.execPath, ['-r', 'esm', supercode]);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/SwingSet/src/kernel/vatManager/factory.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert } from '@agoric/assert';
import { assertKnownOptions } from '../../assertOptions';
import { makeLocalVatManagerFactory } from './localVatManager';
import { makeNodeWorkerVatManagerFactory } from './nodeWorker';
import { makeNodeSubprocessFactory } from './worker-subprocess-node';
import { makeLocalVatManagerFactory } from './manager-local';
import { makeNodeWorkerVatManagerFactory } from './manager-nodeworker';
import { makeNodeSubprocessFactory } from './manager-subprocess-node';

export function makeVatManagerFactory({
allVatPowers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

// eslint-disable-next-line no-global-assign
require = require('esm')(module);
module.exports = require('./nodeWorkerSupervisor');
module.exports = require('./supervisor-nodeworker');

0 comments on commit 08ccf41

Please sign in to comment.