-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9449 chainHub durability #9665
9449 chainHub durability #9665
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
f0b6790
to
769b0af
Compare
packages/vow/src/tools.js
Outdated
// TODO this needs to be an anonymous durable zone for the watched function | ||
// Ideally, it should be a lazy one that only allocates the subzone if it gets used | ||
const fnSubzone = makeHeapZone(`${name} hack subzone`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this for now. I am not convinced we need this in the final version
* @returns {(...args: unknown[]) => Vow<T>} | ||
*/ | ||
const retriable = | ||
(fnZone, name, fn) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we should put a dummy fnZone.prepareExo
here to force the user to call retriable
top level, even though that would only let us detect issues during upgrades.
137bfed
to
ec65bfa
Compare
refs: #9449
Description
This makes ChainHub return durable vows. The underlying lookup functions are not durable but they made so by the
retriable
helper.So this also introduces a stub version of #9541 pulled from @dtribble 's #9657
Security Considerations
none
Scaling Considerations
none
Documentation Considerations
none
Testing Considerations
CI
Upgrade Considerations
not yet upgradable. Communicated by
agoric-sdk/packages/vow/src/tools.js
Lines 37 to 38 in a267ba2