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
Event deregister for Informer API #311
Conversation
@MSNTCS Could you write a test that uses register and deregister? |
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.
Could you explain what happens to the ColdEventGenerator if a connection is deregistered?
Now, the connection would not be available but I am not sure about the thread of cold events. I will think about it. |
We do not handle web socket connections, Informer handles subscriptions
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.
What happens to the ColdEvent generators when a subscription is removed?
90bca50
to
86019b2
Compare
#[derive(Clone)] | ||
pub enum Registration { | ||
Register(Subscription), | ||
Deregister(SubscriptionId), | ||
} |
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.
👍
cc206f8
to
32eb0ab
Compare
The subscription would be canceled if the client sends deregister or the connection loses
@MSNTCS Why do you set the |
The subscription would be canceled if the client sends deregister or the
connection loses.