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.
This patch answers the following question from issue #26: "What happens when configuration contains duplicate domains?" Ratelimit errors with a log message such as:
When a request is submitted to it, it responds with:
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.