bsm / redislock

Simplified distributed locking implementation using Redis
Other
1.45k stars 157 forks source link

Make RetryStrategy clonable #32

Closed calvinxiao closed 3 years ago

calvinxiao commented 3 years ago

31 doesn't solve the root problem, I thinks this PR is better.

This PR make sure lock works even when redislock.Option is used as global variable, by making a cloned RetryStrategy.

dim commented 3 years ago

Closing in favour of #31