Skip to content

Commit

Permalink
refactor: setpx version 修改为 const
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqing.zhu committed Jul 26, 2024
1 parent 4e67de4 commit 8fdcd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Locker interface {
ForceWithContext(ctx context.Context, name string) (context.Context, context.CancelFunc, error)
}

var fallbackSETPXVersion = "6.2.0"
const fallbackSETPXVersion = "6.2.0"

// newLocker 新键一个 locker
func newLocker(c *client, opts ...LockerOption) (Locker, error) {
Expand Down

0 comments on commit 8fdcd42

Please sign in to comment.