mirror of https://github.com/hashicorp/consul
Remove unused DefaultSemaphoreRetryTime
Fixes #932 DefaultSemaphoreRetryTime is actually unused, unlike DefaultLockRetryTime.pull/941/head
parent
c559023d81
commit
16de0a909b
|
@ -22,11 +22,6 @@ const (
|
||||||
// a Semaphore acquisition.
|
// a Semaphore acquisition.
|
||||||
DefaultSemaphoreWaitTime = 15 * time.Second
|
DefaultSemaphoreWaitTime = 15 * time.Second
|
||||||
|
|
||||||
// DefaultSemaphoreRetryTime is how long we wait after a failed lock acquisition
|
|
||||||
// before attempting to do the lock again. This is so that once a lock-delay
|
|
||||||
// is in affect, we do not hot loop retrying the acquisition.
|
|
||||||
DefaultSemaphoreRetryTime = 5 * time.Second
|
|
||||||
|
|
||||||
// DefaultSemaphoreKey is the key used within the prefix to
|
// DefaultSemaphoreKey is the key used within the prefix to
|
||||||
// use for coordination between all the contenders.
|
// use for coordination between all the contenders.
|
||||||
DefaultSemaphoreKey = ".lock"
|
DefaultSemaphoreKey = ".lock"
|
||||||
|
|
Loading…
Reference in New Issue