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

Move all the redis init logic inside it's own package #3993

Closed
wants to merge 12 commits into from

Conversation

Peltoche
Copy link
Contributor

No description provided.

@Peltoche Peltoche marked this pull request as ready for review June 17, 2023 17:49
@Peltoche Peltoche requested a review from a team as a code owner June 17, 2023 17:49
@@ -292,27 +292,8 @@ func NewRedisConfig(u string) (conf RedisConfig, err error) {

// GetRedisConfig returns a
func GetRedisConfig(v *viper.Viper, mainOpt *redis.UniversalOptions, key, ptr string) (conf RedisConfig, err error) {
var localOpt *redis.Options

localKey := fmt.Sprintf("%s.%s", key, ptr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must keep the localOpt. It is used for the flags, like in cozy-stack serve --lock-url=redis:https://localhost:6379/1.

@nono
Copy link
Member

nono commented Jun 20, 2023

The other commits look good

@Peltoche Peltoche closed this Jun 20, 2023
@nono nono deleted the redis-config2 branch June 21, 2023 08:08
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.

None yet

2 participants