Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #26: Handling duplicate domains #103

Merged
merged 31 commits into from
Nov 25, 2019

Conversation

mdimjasevic
Copy link
Contributor

@mdimjasevic mdimjasevic commented Nov 13, 2019

This patch answers the following question from issue #26: "What happens when configuration contains duplicate domains?" Ratelimit errors with a log message such as:

ERRO[0000] error loading new configuration from runtime: config.another.yaml: duplicate domain 'another' in config file

When a request is submitted to it, it responds with:

ERROR:
  Code: Unknown
  Message: no rate limit configuration loaded

This patch updates Fencer to match the behavior.

Note that I used some functionality from the mdimjasevic/26-cant-read-file branch, hence this PR's branch is based on that branch. In other words, please review PR #102 first.

@mdimjasevic mdimjasevic self-assigned this Nov 13, 2019
@mdimjasevic mdimjasevic merged commit cb8afc7 into master Nov 25, 2019
@mdimjasevic mdimjasevic deleted the mdimjasevic/26-duplicate-domain branch November 25, 2019 20:12
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.

3 participants