Browse Source
refactor(queue_unbounded): `inbountLen` -> `inboundLen` (#3666)
pull/3667/head
Ryan Russell
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
weed/util/queue_unbounded.go
|
|
@ -28,8 +28,8 @@ func (q *UnboundedQueue) Consume(fn func([]string)) { |
|
|
|
|
|
|
|
if len(q.outbound) == 0 { |
|
|
|
q.inboundLock.Lock() |
|
|
|
inbountLen := len(q.inbound) |
|
|
|
if inbountLen > 0 { |
|
|
|
inboundLen := len(q.inbound) |
|
|
|
if inboundLen > 0 { |
|
|
|
t := q.outbound |
|
|
|
q.outbound = q.inbound |
|
|
|
q.inbound = t |
|
|
|