aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-14 12:12:45 -0500
committerGitHub <noreply@github.com>2022-09-14 10:12:45 -0700
commite22335ba78403585cb094aadb2ece2eba3610543 (patch)
tree11b3dec7db230686af40923b1871df1d556f99fb
parentd54eb9966f35f02eb25baecec000ec77c0587049 (diff)
downloadseaweedfs-e22335ba78403585cb094aadb2ece2eba3610543.tar.xz
seaweedfs-e22335ba78403585cb094aadb2ece2eba3610543.zip
refactor(queue_unbounded): `inbountLen` -> `inboundLen` (#3666)
-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