Browse Source

refactor(queue_unbounded): `inbountLen` -> `inboundLen` (#3666)

pull/3667/head
Ryan Russell 2 years ago
committed by GitHub
parent
commit
e22335ba78
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      weed/util/queue_unbounded.go

4
weed/util/queue_unbounded.go

@ -28,8 +28,8 @@ func (q *UnboundedQueue) Consume(fn func([]string)) {
if len(q.outbound) == 0 { if len(q.outbound) == 0 {
q.inboundLock.Lock() q.inboundLock.Lock()
inbountLen := len(q.inbound)
if inbountLen > 0 {
inboundLen := len(q.inbound)
if inboundLen > 0 {
t := q.outbound t := q.outbound
q.outbound = q.inbound q.outbound = q.inbound
q.inbound = t q.inbound = t

Loading…
Cancel
Save