We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f93ec6 commit 700a257Copy full SHA for 700a257
store/json.go
@@ -24,7 +24,7 @@ const (
24
lockMaxRetries = 20
25
26
// Delay between lock retries.
27
- lockRetryDelay = 100 * time.Millisecond
+ lockRetryDelayInMilliseconds = 100
28
)
29
30
// jsonFileStore is an implementation of KeyValueStore using a local JSON file.
@@ -157,7 +157,7 @@ func (kvs *jsonFileStore) Lock(block bool) error {
157
return ErrStoreLocked
158
}
159
160
- time.Sleep(lockRetryDelay)
+ time.Sleep(time.Duration(lockRetryDelayInMilliseconds) * time.Millisecond)
161
162
163
// Write the process ID for easy identification.
0 commit comments