Skip to content

Commit c6a379c

Browse files
committed
eliminate credit
1 parent 96bc9b8 commit c6a379c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/kernel/src/store/methods/promise.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function getPromiseMethods(ctx: StoreContext) {
176176
ctx.kv.set(`${kpid}.value`, JSON.stringify(value));
177177
ctx.kv.delete(`${kpid}.decider`);
178178
ctx.kv.delete(`${kpid}.subscribers`);
179-
// Drop the baseline “decider” credit now that the promise is settled.
179+
// Drop the baseline “decider” refcount now that the promise is settled.
180180
decrementRefCount(kpid, 'resolve|decider');
181181
queue.delete();
182182
}

packages/kernel/src/store/methods/vat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export function getVatMethods(ctx: StoreContext) {
267267
const vref = key.slice(clistPrefix.length);
268268
// the following will also delete both db keys
269269
deleteCListEntry(vatID, kref, vref);
270-
// If the dead vat was still the decider, drop the decider’s credit, too.
270+
// If the dead vat was still the decider, drop the decider’s refcount, too.
271271
const kp = getKernelPromise(kref);
272272
if (kp.decider === vatID) {
273273
decrementRefCount(kref, 'cleanup|promise|decider');

0 commit comments

Comments
 (0)