Skip to content

Adds v5 new client subcommands #1036

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

Merged
merged 6 commits into from
Nov 5, 2018
Merged

Adds v5 new client subcommands #1036

merged 6 commits into from
Nov 5, 2018

Conversation

itamarhaber
Copy link
Member

Specifically, CLIENT ID and CLIENT UNBLOCK.

Signed-off-by: Itamar Haber <[email protected]>
Signed-off-by: Itamar Haber <[email protected]>
@itamarhaber itamarhaber changed the title Adds v5 newclient subcommands Adds v5 new client subcommands Oct 5, 2018
Signed-off-by: Itamar Haber <[email protected]>
Copy link
Contributor

@andymccurdy andymccurdy left a comment

Choose a reason for hiding this comment

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

I think the CLIENT UNBLOCK implementation could be improved to take a boolean error=False instead of a string. Then the implementation would simply append 'ERROR' to the command if error==True. From the docs, I see no reason why we ever need to pass 'TIMEOUT' as that's the default if no options are specified. Am I missing something?

@itamarhaber
Copy link
Member Author

@andymccurdy agreed - merging @RoeyPrat's PR to address that.

Remove reason arg from client_unblock. Use boolean 'error' arg instead.

xref: #1036 (review)
Copy link
Contributor

@andymccurdy andymccurdy left a 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

@andymccurdy andymccurdy merged commit d7827d8 into redis:master Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants