Skip to content

Commit

Permalink
Respect concurrency in GCP (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
munir131 committed Oct 12, 2023
1 parent 341aa3a commit 3dfcfdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v1/brokers/gcppubsub/gcp_pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (b *Broker) StartConsuming(consumerTag string, concurrency int, taskProcess
}

sub.ReceiveSettings.NumGoroutines = concurrency
sub.ReceiveSettings.MaxOutstandingMessages = concurrency
log.INFO.Print("[*] Waiting for messages. To exit press CTRL+C")

ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit 3dfcfdd

Please sign in to comment.