Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

Fixes issue

Describe the change

This removes the throttle from the config, putting it in reghttp where it is used. Ideally the config should only have static config values, but some methods for credential helpers are likely to remain.

How to verify it

This is transparent to anyone unless they accessed the config method directly.

Changelog text

  • Chore: Move throttle from config to reghttp.
  • Breaking: config.Host.Throttle() has been removed. Use scheme.Throttler instead.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

Breaking: config.Host.Throttle() has been removed. Use scheme.Throttler instead.

Ideally the config should only have static config values.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit 12736dc into regclient:main Aug 27, 2024
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-config-throttle-refactor branch August 27, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant