projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17650: Fix test order dependency.
[arvados.git]
/
lib
/
controller
/
semaphore.go
diff --git
a/lib/controller/semaphore.go
b/lib/controller/semaphore.go
index ff607bbb57ae0c927187699f0284924d751372a0..e1cda33f93ae7b477ba1930f9de62a8a9123f82d 100644
(file)
--- a/
lib/controller/semaphore.go
+++ b/
lib/controller/semaphore.go
@@
-8,7
+8,6
@@
func semaphore(max int) (acquire, release func()) {
if max > 0 {
ch := make(chan bool, max)
return func() { ch <- true }, func() { <-ch }
if max > 0 {
ch := make(chan bool, max)
return func() { ch <- true }, func() { <-ch }
- } else {
- return func() {}, func() {}
}
}
+ return func() {}, func() {}
}
}