diff options
| author | Ryan Russell <ryanrussell@users.noreply.github.com> | 2022-09-14 12:12:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-14 10:12:45 -0700 |
| commit | e22335ba78403585cb094aadb2ece2eba3610543 (patch) | |
| tree | 11b3dec7db230686af40923b1871df1d556f99fb | |
| parent | d54eb9966f35f02eb25baecec000ec77c0587049 (diff) | |
| download | seaweedfs-e22335ba78403585cb094aadb2ece2eba3610543.tar.xz seaweedfs-e22335ba78403585cb094aadb2ece2eba3610543.zip | |
refactor(queue_unbounded): `inbountLen` -> `inboundLen` (#3666)
| -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 |
