Skip to content

Conversation

peczenyj
Copy link
Contributor

@peczenyj peczenyj commented Sep 21, 2023

Hello

the command CLIENT SETINFO expects lib name OR lib version and it we try to set both (or none) it will fail

to avoid this I add two small helpers that can return a valid LibraryInfo struct that will never panics and it make the code readable (please check the examples)

I did not add any breaking changes, just two new functions: WithLibraryName and WithLibraryVersion -- we can rename it if you want.

I think this can mitigate any possible panic in runtime.

Regards

@chayim chayim requested a review from ofekshenawa November 1, 2023 08:38
ofekshenawa
ofekshenawa previously approved these changes Dec 17, 2023
@ofekshenawa ofekshenawa dismissed their stale review December 17, 2023 14:00

Tests failed

@ofekshenawa ofekshenawa merged commit 21ed15b into redis:master Feb 14, 2024
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