mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-04 02:57:44 +01:00
refactor(queue_unbounded): inbountLen -> inboundLen (#3666)
This commit is contained in:
1 parent
d54eb9966f
commit
e22335ba78
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user