mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
refactor(queue_unbounded): inbountLen
-> inboundLen
(#3666)
This commit is contained in:
parent
d54eb9966f
commit
e22335ba78
|
@ -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)
|
inboundLen := len(q.inbound)
|
||||||
if inbountLen > 0 {
|
if inboundLen > 0 {
|
||||||
t := q.outbound
|
t := q.outbound
|
||||||
q.outbound = q.inbound
|
q.outbound = q.inbound
|
||||||
q.inbound = t
|
q.inbound = t
|
||||||
|
|
Loading…
Reference in a new issue