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

Add helpers to set libinfo without panic #2724

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update example
  • Loading branch information
peczenyj committed Dec 21, 2023
commit 38f11a8ff9b5494b373dda45994fe0208fa058f8
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func ExampleConn_name() {
func ExampleConn_client_setInfo_libraryVersion() {
conn := rdb.Conn()

err := conn.ClientSetInfo(ctx, redis.WithLibraryVersion("1.0.0")).Err()
err := conn.ClientSetInfo(ctx, redis.WithLibraryVersion("1.2.3")).Err()
if err != nil {
panic(err)
}
Expand All @@ -194,7 +194,7 @@ func ExampleConn_client_setInfo_libraryVersion() {
}

fmt.Println(s.LibVer)
// Output: 1.0.0
// Output: 1.2.3
}

func ExampleClient_Set() {
Expand Down
Loading