-
Notifications
You must be signed in to change notification settings - Fork 232
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
Why is makeZoeInstanceStorageManager()'s instance parameter typed M.or(InstanceHandleShape, BundleShape)? #8645
Comments
in #8642, I commented
|
closes: #8645 Two typeGuards in Zoe allowed both where they should have had one or the other.
the type declaration for
The type of installationStorage's version is undeclared. AFAICT, that TypeGuard was introduced by #5997, and the implementation then matched what it does now. I'm going to drop |
closes: #8645 Two typeGuards in Zoe allowed both where they should have had one or the other.
closes: #8645 Two typeGuards in Zoe allowed both where they should have had one or the other.
What is the Problem Being Solved?
In #8642, I noticed that the
instance
parameter tomakeZoeInstanceStorageManager()
is typedM.or(InstanceHandleShape, BundleShape)
. Theinstance
parameter is stored ininstanceRecordStorage
, so the type seems wrong.Description of the Design
installBundle also takes
M.or(InstanceHandleShape, BundleShape)
. Is it related?While I'm looking, also investigate this line in startInstance. ZoeStorageManager has a
startInstanceAccess
facet with these two methods. What gets passed tomakeStartInstance()
?Security Considerations
Not a security issue
Scaling Considerations
N/A
Test Plan
No plan to test anything.
Upgrade Considerations
Changing types impacts upgrade.
The text was updated successfully, but these errors were encountered: