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

Update with latest changes to redis-rs. #312

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

shachlanAmazon
Copy link
Contributor

No description provided.

@@ -42,7 +42,12 @@ async def async_socket_client(request, cluster_mode) -> RedisAsyncSocketClient:
client.close()


def parse_info_response(res: str) -> Dict[str, str]:
def to_str(res: str | List[str]) -> str:
return res[0] if isinstance(res, list) else res
Copy link
Collaborator

@barshaul barshaul Jul 12, 2023

Choose a reason for hiding this comment

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

res can also be None, and the function can return None.
change to str(res) if res else None

Copy link
Collaborator

@barshaul barshaul left a comment

Choose a reason for hiding this comment

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

small change

@shachlanAmazon shachlanAmazon merged commit 5942377 into valkey-io:main Jul 12, 2023
8 checks passed
@shachlanAmazon shachlanAmazon deleted the update-main branch July 13, 2023 10:04
acarbonetto pushed a commit that referenced this pull request May 28, 2024
Add command LSET (#312)

* Add command LSET

---------

Co-authored-by: TJ Zhang <tj.zhang@improving.com>
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