Skip to content

Commit

Permalink
Patch typos
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Oct 25, 2024
1 parent 448a2cf commit dd8eda2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/source/pubsub/pubsub_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ type Configuration struct {
ConcurrentWrites int `hcl:"concurrent_writes,optional"`
MaxOutstandingMessages int `hcl:"max_outstanding_messages,optional"`
MaxOutstandingBytes int `hcl:"max_outstanding_bytes,optional"`
minExtensionPeriodSeconds int `hcl:"min_extension_period_seconds,optional"`
streamingPullGoRoutines int `hcl:"streaming_pull_goroutines,optional"`
MinExtensionPeriodSeconds int `hcl:"min_extension_period_seconds,optional"`
StreamingPullGoRoutines int `hcl:"streaming_pull_goroutines,optional"`
}

// pubSubSource holds a new client for reading messages from PubSub
Expand Down Expand Up @@ -62,8 +62,8 @@ func configFunction(c *Configuration) (sourceiface.Source, error) {
c.SubscriptionID,
c.MaxOutstandingMessages,
c.MaxOutstandingBytes,
c.minExtensionPeriodSeconds,
c.streamingPullGoRoutines,
c.MinExtensionPeriodSeconds,
c.StreamingPullGoRoutines,
)
}

Expand All @@ -83,8 +83,8 @@ func (f adapter) ProvideDefault() (interface{}, error) {
ConcurrentWrites: 50,
MaxOutstandingMessages: 1000,
MaxOutstandingBytes: 1e9,
minExtensionPeriodSeconds: 0,
streamingPullGoRoutines: 1,
MinExtensionPeriodSeconds: 0,
StreamingPullGoRoutines: 1,
}

return cfg, nil
Expand Down

0 comments on commit dd8eda2

Please sign in to comment.