Summary
Allow users to configure timeout values and concurrency limits through ~/.config/claws/config.yaml
Current Hardcoded Values
| Constant |
Value |
Location |
awsInitTimeout |
5s |
internal/app/app.go |
multiRegionFetchTimeout |
30s |
internal/view/resource_browser_fetch.go |
tagSearchTimeout |
30s |
internal/view/tag_search_view.go |
metricsLoadTimeout |
10s |
internal/view/resource_browser_metrics.go |
maxConcurrentFetches |
50 |
internal/view/resource_browser_fetch.go |
Proposed Config Structure
# ~/.config/claws/config.yaml
timeouts:
aws_init: 5s
multi_region_fetch: 30s
tag_search: 30s
metrics_load: 10s
concurrency:
max_fetches: 50
Use Cases
- Slow network environments need longer timeouts
- Users with many profiles may want higher concurrency limits
- Debugging/testing may benefit from shorter timeouts
Related
Summary
Allow users to configure timeout values and concurrency limits through
~/.config/claws/config.yamlCurrent Hardcoded Values
awsInitTimeoutinternal/app/app.gomultiRegionFetchTimeoutinternal/view/resource_browser_fetch.gotagSearchTimeoutinternal/view/tag_search_view.gometricsLoadTimeoutinternal/view/resource_browser_metrics.gomaxConcurrentFetchesinternal/view/resource_browser_fetch.goProposed Config Structure
Use Cases
Related