Skip to content

Commit

Permalink
Specificity in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Nov 12, 2024
1 parent b866b5a commit 71ede8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/source/pubsub/pubsub_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (ps *pubSubSource) Read(sf *sourceiface.SourceFunctions) error {

sub := ps.client.Subscription(ps.subscriptionID)
sub.ReceiveSettings.NumGoroutines = ps.streamingPullGoRoutines // This sets the number of goroutines that can open a streaming pull at once
sub.ReceiveSettings.MaxOutstandingMessages = ps.maxOutstandingMessages // maxOutstandingMessages limits the number of messages processed at once
sub.ReceiveSettings.MaxOutstandingMessages = ps.maxOutstandingMessages // maxOutstandingMessages limits the number of messages processed at once (each spawns a goroutine)
sub.ReceiveSettings.MaxOutstandingBytes = ps.maxOutstandingBytes
sub.ReceiveSettings.MinExtensionPeriod = time.Duration(ps.minExtensionPeriodSeconds) * time.Second

Expand Down

0 comments on commit 71ede8c

Please sign in to comment.