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

Consolidate configuration validation to the cfg module #594

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

svix-daniel
Copy link
Contributor

Makes miscellaneous improvements to the ConfigurationInner validation to provide clearer error messages and avoid validation code scattered elsewhere in the codebase.

The main change is to the Redis DSN validation and the associated helper methods for fetching the key value store backend used by both the queue and the cache.

This also changes the type of the listen_address from a String to a SocketAddr such as to avoid parsing it elsewhere in the code.

@svix-daniel svix-daniel changed the title Consoldate configration validation to the cfg module Consoldate configuration validation to the cfg module Jul 27, 2022
@svix-daniel svix-daniel force-pushed the daniel/configuration-validation branch from 9c7de57 to 1461f18 Compare July 27, 2022 17:33
@svix-daniel svix-daniel changed the title Consoldate configuration validation to the cfg module Consolidate configuration validation to the cfg module Jul 27, 2022
server/svix-server/src/cfg.rs Outdated Show resolved Hide resolved
server/svix-server/src/cfg.rs Outdated Show resolved Hide resolved
server/svix-server/src/cfg.rs Outdated Show resolved Hide resolved
server/svix-server/src/queue/mod.rs Show resolved Hide resolved
@svix-daniel svix-daniel force-pushed the daniel/configuration-validation branch from 1461f18 to 1b57df0 Compare July 27, 2022 17:42
@svix-daniel svix-daniel merged commit 93fa79a into main Jul 27, 2022
@svix-daniel svix-daniel deleted the daniel/configuration-validation branch July 27, 2022 18:01
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.

2 participants