Skip to content

Commit

Permalink
fix(bundle): deprecate the experimental E.C() syntax
Browse files Browse the repository at this point in the history
It wasn't giving us much advantage compared to E and E.G.
Removing it from here (its only use) allows us to remove it from
@agoric/eventual-send.
  • Loading branch information
michaelfig authored and warner committed Dec 1, 2019
1 parent 7bf8bbb commit 07f46cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/cosmic-swingset/lib/ag-solo/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ export default async function bundle(insistIsBasedir, args) {
});

// Wait for the chain to become ready.
let bootC = E.C(getBootstrap());
console.error('Chain loaded:', await bootC.G.LOADING.P);
let boot = getBootstrap();
console.error('Chain loaded:', await E.G(boot).LOADING);
// Take a new copy, since the chain objects have been added to bootstrap.
bootC = E.C(getBootstrap());
boot = getBootstrap();
if (once) {
if (await bootC.G.READY.M.isReady().P) {
if (await E(E.G(boot).READY).isReady()) {
console.error('Singleton bundle already installed');
ws.close();
exit.res(1);
Expand All @@ -135,11 +135,11 @@ export default async function bundle(insistIsBasedir, args) {
continue;
}

await main({ bundle: bundled, home: bootC.P });
await main({ bundle: bundled, home: boot });
}
console.error('Done!');
if (once) {
await bootC.G.READY.M.resolve('initialized').P;
await E(E.G(boot).READY).resolve('initialized');
}
ws.close();
exit.res(0);
Expand Down

0 comments on commit 07f46cc

Please sign in to comment.