Skip to content

Commit

Permalink
fix(xsnap worker): vatid arg on doNotify is no more
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 23, 2021
1 parent c32cc6f commit 9ac2289
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ function makeWorker(port) {
);
}

/** @type { (pv: unknown, msg: any) => Promise<Tagged> } */
function doNotify(primaryVpid, resolutions) {
const errmsg = `vat.promise[${primaryVpid}] failed`;
return doProcess(['notify', primaryVpid, resolutions], errmsg);
/** @type { (rs: unknown) => Promise<Tagged> } */
function doNotify(resolutions) {
const errmsg = `vat.notify failed`;
return doProcess(['notify', resolutions], errmsg);
}

function makeConsole(tag) {
Expand Down Expand Up @@ -202,7 +202,7 @@ function makeWorker(port) {
case 'message':
return doMessage(dargs[0], dargs[1]);
case 'notify':
return doNotify(dargs[0], dargs[1]);
return doNotify(dargs[0]);
default:
throw Error(`bad delivery type ${dtype}`);
}
Expand Down

0 comments on commit 9ac2289

Please sign in to comment.