Skip to content

Commit 649b7fa

Browse files
authored
Add MaxConcurrency to GetConfig - for use when using Get hydrate as a column hydrate function. Closes #353
1 parent 5d40fe7 commit 649b7fa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

plugin/get_config.go

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type GetConfig struct {
2222
ShouldIgnoreError ErrorPredicate
2323
IgnoreConfig *IgnoreConfig
2424
RetryConfig *RetryConfig
25+
// max concurrency - this applies when the get function is ALSO used as a column hydrate function
26+
MaxConcurrency int
2527
}
2628

2729
// initialise the GetConfig

plugin/table.go

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ func (t *Table) buildHydrateConfigMap() {
139139
ShouldIgnoreError: get.ShouldIgnoreError,
140140
IgnoreConfig: get.IgnoreConfig,
141141
RetryConfig: get.RetryConfig,
142+
MaxConcurrency: get.MaxConcurrency,
142143
}
143144
}
144145

0 commit comments

Comments
 (0)