-
Notifications
You must be signed in to change notification settings - Fork 535
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
Removed bindToContext from IFluidDataStoreChannel #8269
Removed bindToContext from IFluidDataStoreChannel #8269
Conversation
@@ -429,17 +429,17 @@ IFluidDataStoreChannel, IFluidDataStoreRuntime, IFluidHandleContext { | |||
}); | |||
|
|||
this.localChannelContextQueue.clear(); | |||
this.bindToContext(); | |||
this.updateBindState(); |
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.
Can we instead inline the call and get rid of this.bindState? I think (given that's the only entry point) that we ensure it's called only once, so no need to track it? In places where it's tested, can we leverage appropriate this.graphAttachState states?
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.
Good point. Removed it. Can you please take a look if the logic looks correct now.
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.
Looks good to me - one less concept to think about!
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.
Yes, exactly. Now we just need to rename graphAttachState!
Fixes #7895 and #7927.
IFluidDataStoreChannel::bindToContext was deprecated in 0.50. This has now been removed.
Also, removed
bindState
tracking from data store runtime since that is now a duplicate of graphAttachState.