Skip to content

Commit

Permalink
More specificity in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Nov 12, 2024
1 parent b37e77b commit 7607452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/source/pubsub/pubsub_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func newPubSubSource(concurrentWrites int, projectID string, subscriptionID stri
log := log.WithFields(log.Fields{"source": "pubsub", "cloud": "GCP", "project": projectID, "subscription": subscriptionID})

// We use a slice to provide the grpcConnectionPool option only if it is set.
// Otherwise we'll overwrite the client's clever under-the-hood default behaviour
// Otherwise we'll overwrite the client's clever under-the-hood default behaviour:
// https://github.com/googleapis/google-cloud-go/blob/380e7d23e69b22ab46cc6e3be58902accee2f26a/pubsub/pubsub.go#L165-L177
var opt []option.ClientOption
if grpcConnectionPool != 0 {
opt = append(opt, option.WithGRPCConnectionPool(grpcConnectionPool))
Expand Down

0 comments on commit 7607452

Please sign in to comment.