From 74244fb6f062282e105767d502be2c2930114e43 Mon Sep 17 00:00:00 2001 From: maxime Date: Wed, 17 Apr 2024 11:31:44 +0100 Subject: [PATCH 1/2] Return nil clients if no redis URL is passed. --- mettle/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mettle/main.go b/mettle/main.go index fcfc70c0..5cf7d06d 100644 --- a/mettle/main.go +++ b/mettle/main.go @@ -228,6 +228,10 @@ func one() error { } func (r RedisOpts) Clients() (primary, read *redis.Client) { + if r.URL == "" { + return nil, nil + } + password := r.ReadPassword() tlsConfig := r.ReadTLSConfig() From fa8287510191c258efc63512b7d061536bc2b542 Mon Sep 17 00:00:00 2001 From: maxime Date: Wed, 17 Apr 2024 13:23:27 +0100 Subject: [PATCH 2/2] Bump version. --- ChangeLog | 4 ++++ VERSION | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d58b3a60..fa7bec9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Version 11.9.7 +-------------- + * Do not use redis clients when no URL is provided. + Version 11.9.6 -------------- * Refactor of redis client initialisation so it's easier to add new diff --git a/VERSION b/VERSION index e5416e49..2f9c5843 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -11.9.6 +11.9.7