Fixed single-node routing breakage. (#1209)

* Fixed single-node routing breakage.

Due to a regression of a previous change, Redis was always enabled even
when no configuration was provided.

* updated go modules
This commit is contained in:
David Zhao
2022-12-04 16:23:35 -08:00
committed by GitHub
parent 2cad63fe9a
commit 14de2bec9c
4 changed files with 15 additions and 19 deletions
+3
View File
@@ -117,6 +117,9 @@ func createWebhookNotifier(conf *config.Config, provider auth.KeyProvider) (webh
}
func createRedisClient(conf *config.Config) (redis.UniversalClient, error) {
if !conf.Redis.IsConfigured() {
return nil, nil
}
return redisLiveKit.GetRedisClient(&conf.Redis)
}
+3
View File
@@ -143,6 +143,9 @@ func createWebhookNotifier(conf *config.Config, provider auth.KeyProvider) (webh
}
func createRedisClient(conf *config.Config) (redis.UniversalClient, error) {
if !conf.Redis.IsConfigured() {
return nil, nil
}
return redis2.GetRedisClient(&conf.Redis)
}