Skip to content

Commit

Permalink
Update docs config, rename option
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Nov 12, 2024
1 parent 71ede8c commit 60968f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion assets/docs/configuration/sources/pubsub-full-example.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ source {
# Maximum size of unprocessed messages (default 1e9)
max_outstanding_bytes = 2e9

# Minimum ack extension period when a message is received
min_extension_period_seconds = 10

streaming_pull_goroutines = 2
# Number of streaming pull connections to open at once
streaming_pull_goroutines = 1

# Configures the GRPC connection pool size of the pubsub client
grpc_connection_pool_size = 4
}
}
2 changes: 1 addition & 1 deletion pkg/source/pubsub/pubsub_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Configuration struct {
MaxOutstandingBytes int `hcl:"max_outstanding_bytes,optional"`
MinExtensionPeriodSeconds int `hcl:"min_extension_period_seconds,optional"`
StreamingPullGoRoutines int `hcl:"streaming_pull_goroutines,optional"`
GRPCConnectionPool int `hcl:"grpc_connection_pool,optional"`
GRPCConnectionPool int `hcl:"grpc_connection_pool_size,optional"`
}

// pubSubSource holds a new client for reading messages from PubSub
Expand Down

0 comments on commit 60968f1

Please sign in to comment.