Browse Source
docs(wdclient): readability fix (#3685)
Signed-off-by: Ryan Russell <git@ryanrussell.org>
Signed-off-by: Ryan Russell <git@ryanrussell.org>
pull/3688/head
Ryan Russell
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/wdclient/resource_pool/semaphore.go
|
@ -105,7 +105,7 @@ func (s *unboundedSemaphore) Release() { |
|
|
s.lock.Lock() |
|
|
s.lock.Lock() |
|
|
s.counter += 1 |
|
|
s.counter += 1 |
|
|
if s.counter > 0 { |
|
|
if s.counter > 0 { |
|
|
// Not broadcasting here since it's unlike we can satify all waiting
|
|
|
// Not broadcasting here since it's unlike we can satisfy all waiting
|
|
|
// goroutines. Instead, we will Signal again if there are left over
|
|
|
// goroutines. Instead, we will Signal again if there are left over
|
|
|
// quota after Acquire, in case of lost wakeups.
|
|
|
// quota after Acquire, in case of lost wakeups.
|
|
|
s.cond.Signal() |
|
|
s.cond.Signal() |
|
|
xxxxxxxxxx