aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/util/queue_unbounded.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/queue_unbounded.go b/weed/util/queue_unbounded.go
index 496b9f844..81ab69185 100644
--- a/weed/util/queue_unbounded.go
+++ b/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