Skip to content
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

cmd/pubsub: fix peers command topic filtering #3484

Merged
merged 1 commit into from
Dec 9, 2016

Conversation

whyrusleeping
Copy link
Member

closes #3467

License: MIT
Signed-off-by: Jeromy why@ipfs.io

@whyrusleeping whyrusleeping added the status/in-progress In progress label Dec 8, 2016
@whyrusleeping whyrusleeping requested a review from Kubuxu December 8, 2016 00:47
@whyrusleeping whyrusleeping added need/review Needs a review status/ready Ready to be worked and removed status/in-progress In progress labels Dec 8, 2016
Copy link
Member

@Kubuxu Kubuxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The help text should also probably be updated to reflect those changes.

@@ -302,8 +305,13 @@ To use, the daemon must be run with '--enable-pubsub-experiment'.
return
}

var topic string
if len(req.Arguments()) == 1 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause confusion if more topics are passed. IMO either error out or use all of them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The argument is optional and non-variadic. This means that passing two arguments will error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@whyrusleeping whyrusleeping added this to the ipfs 0.4.5 milestone Dec 9, 2016
@whyrusleeping whyrusleeping merged commit e893fb9 into master Dec 9, 2016
@whyrusleeping whyrusleeping deleted the fix/pubsub-peers-cmd branch December 9, 2016 20:08
@whyrusleeping whyrusleeping removed the status/ready Ready to be worked label Dec 9, 2016
@ghost ghost mentioned this pull request Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/review Needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pubsub returns wrong peers for a topic
2 participants