Fix
This commit is contained in:
parent
d77ae96464
commit
6895b42808
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func BenchmarkKeyLock_NoBusyWait(b *testing.B) {
|
||||||
|
|
||||||
cancel := make(chan struct{})
|
cancel := make(chan struct{})
|
||||||
defer close(cancel)
|
defer close(cancel)
|
||||||
for i := 0; i < 5000; i++ {
|
for i := 0; i < 1000; i++ {
|
||||||
go func() {
|
go func() {
|
||||||
l.LockKeys(lockedKey, cancel)
|
l.LockKeys(lockedKey, cancel)
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in a new issue