-
Notifications
You must be signed in to change notification settings - Fork 25
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
channels: fix kick/resubscribe loop caused by flagging #3209
Conversation
desk/app/channels.hoon
Outdated
@@ -575,6 +575,7 @@ | |||
== | |||
++ ca-abed | |||
|= n=nest:c | |||
?. (~(has by v-channels) n) ca-core |
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.
@Fang- @midsum-salrux I don't think this is actually good and could end up doing weird things. I tried moving up to line 541 and doing some no-oping there but I'm not sure that's right either.
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.
Yeah this changes the semantics of +ca-abed
enough to make a lot of the code here "clearly wrong".
Was gonna say that, what we want instead, is a %u
scry for channel existence, but we already have it! Whoever is doing a scry that fails on the got:by
here should first be doing the %u
version of the scry.
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.
LGTM
PR Checklist
This fixes LAND-1528 which was causing a kick/resubscribe loop because our scry caused a crash. This changes the scry so that it no-ops if it doesn't find the content and also changes the
ca-abed
path to no-op if a channel is not found.