Skip to content

Commit

Permalink
Remove unused DefaultSemaphoreRetryTime
Browse files Browse the repository at this point in the history
Fixes hashicorp#932

DefaultSemaphoreRetryTime is actually unused, unlike DefaultLockRetryTime.
  • Loading branch information
highlyunavailable committed May 15, 2015
1 parent c559023 commit 16de0a9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/semaphore.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ const (
// a Semaphore acquisition.
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
// use for coordination between all the contenders.
DefaultSemaphoreKey = ".lock"
Expand Down

0 comments on commit 16de0a9

Please sign in to comment.