-
Notifications
You must be signed in to change notification settings - Fork 224
Adds environment variable for table sync max currency limit #3252
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3252 +/- ##
==========================================
- Coverage 23.49% 23.48% -0.02%
==========================================
Files 387 387
Lines 44370 44480 +110
==========================================
+ Hits 10426 10445 +19
- Misses 32887 32976 +89
- Partials 1057 1059 +2 ☔ View full report in Codecov by Sentry. |
Benchstat Geomean Results-0.66% sec/op, -0.02% B/op, 0.00% allocs/op Benchstat results |
| {{- if .Values.tableSync.maxConcurrency }} | ||
| TABLESYNC_MAX_CONCURRENCY: {{ .Values.tableSync.maxConcurrency }} | ||
| {{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The if wrapper is not required because you've set it as a default value in the values.yaml
|
|
||
| func getTableSyncMaxConcurrency() int { | ||
| maxConcurrency := viper.GetInt("TABLESYNC_MAX_CONCURRENCY") | ||
| if maxConcurrency == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best to change this to <=0 to prevent people from setting it to something like -1
No description provided.