Skip to content

Commit

Permalink
Delete unused option methods (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferyjob authored Jul 15, 2024
1 parent 0de0494 commit 82828cf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ func New(ctx context.Context, redisClient RedisInter, lockKey string, options ..
return lock
}

// WithKey 设置锁的key
func WithKey(key string) Option {
return func(lock *RedisLock) {
lock.key = key
}
}

// WithTimeout 设置锁过期时间
func WithTimeout(timeout time.Duration) Option {
return func(lock *RedisLock) {
Expand Down

0 comments on commit 82828cf

Please sign in to comment.