Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
祝黄清 committed Oct 26, 2024
1 parent 44a90e4 commit 129e693
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package redisson

import (
"context"

"github.com/redis/rueidis"
"github.com/redis/rueidis/rueidislock"
)
Expand Down Expand Up @@ -67,7 +68,7 @@ func newLocker(c *client, opts ...LockerOption) (Locker, error) {
FallbackSETPX: cc.GetFallbackSETPX(),
ClientOption: confVisitor2ClientOption(c.v),
ClientBuilder: func(option rueidis.ClientOption) (rueidis.Client, error) {
return c.cmd, nil
return rueidis.NewClient(option)
},
})
if err != nil {
Expand Down

0 comments on commit 129e693

Please sign in to comment.