diff options
| author | chrislu <chris.lu@gmail.com> | 2022-09-17 10:18:14 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-09-17 10:18:14 -0700 |
| commit | 1c79301f89762ed25a431bcb5f4e02858dc02218 (patch) | |
| tree | d0d6c5c44f7524ec38d7002e393d194769278649 /weed/util/queue_unbounded.go | |
| parent | 956ce6416fae66646344782cc7f6f557708eb1f4 (diff) | |
| parent | 3fc261d27c90fc06c1d555dd998d7535b844a746 (diff) | |
| download | seaweedfs-1c79301f89762ed25a431bcb5f4e02858dc02218.tar.xz seaweedfs-1c79301f89762ed25a431bcb5f4e02858dc02218.zip | |
Merge branch 'master' into message_send
Diffstat (limited to 'weed/util/queue_unbounded.go')
| -rw-r--r-- | weed/util/queue_unbounded.go | 4 |
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 |
