aboutsummaryrefslogtreecommitdiff
path: root/weed/util/limiter.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/util/limiter.go')
-rw-r--r--weed/util/limiter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/limiter.go b/weed/util/limiter.go
index 2debaaa85..9d63c12a1 100644
--- a/weed/util/limiter.go
+++ b/weed/util/limiter.go
@@ -50,10 +50,10 @@ func (c *LimitedConcurrentExecutor) Execute(job func()) {
type OperationRequest func()
type LimitedOutOfOrderProcessor struct {
- processorSlots uint32
- processors []chan OperationRequest
processorLimit int32
processorLimitCond *sync.Cond
+ processorSlots uint32
+ processors []chan OperationRequest
currentProcessor int32
}