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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user