Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion v1/brokers/redis/goredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (b *BrokerGR) StartConsuming(consumerTag string, concurrency int, taskProce
defer b.consumingWG.Done()

if concurrency < 1 {
concurrency = runtime.NumCPU() * 2
concurrency = runtime.GOMAXPROCS(0) * 2
}

b.Broker.StartConsuming(consumerTag, concurrency, taskProcessor)
Expand Down
2 changes: 1 addition & 1 deletion v1/brokers/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (b *Broker) StartConsuming(consumerTag string, concurrency int, taskProcess
defer b.consumingWG.Done()

if concurrency < 1 {
concurrency = runtime.NumCPU() * 2
concurrency = runtime.GOMAXPROCS(0) * 2
}

b.Broker.StartConsuming(consumerTag, concurrency, taskProcessor)
Expand Down
2 changes: 1 addition & 1 deletion v2/brokers/redis/goredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (b *BrokerGR) StartConsuming(consumerTag string, concurrency int, taskProce
defer b.consumingWG.Done()

if concurrency < 1 {
concurrency = runtime.NumCPU() * 2
concurrency = runtime.GOMAXPROCS(0) * 2
}

b.Broker.StartConsuming(consumerTag, concurrency, taskProcessor)
Expand Down
2 changes: 1 addition & 1 deletion v2/brokers/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (b *Broker) StartConsuming(consumerTag string, concurrency int, taskProcess
defer b.consumingWG.Done()

if concurrency < 1 {
concurrency = runtime.NumCPU() * 2
concurrency = runtime.GOMAXPROCS(0) * 2
}

b.Broker.StartConsuming(consumerTag, concurrency, taskProcessor)
Expand Down