This commit is contained in:
Fedor Korotkiy 2022-03-18 23:25:42 +03:00
parent d77ae96464
commit 6895b42808

View file

@ -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)
}() }()