Merge pull request #299995 from tie/centrifugo-tests-fix-shards

This commit is contained in:
Sandro 2024-06-02 23:09:48 +02:00 committed by GitHub
commit fa7656236f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,12 +24,10 @@ in
engine = "redis";
# Connect to local Redis shard via Unix socket.
redis_address =
let
otherNodes = lib.take index nodes ++ lib.drop (index + 1) nodes;
in
map (name: "${name}:${toString redisPort}") otherNodes ++ [
let toRedisAddresses = map (name: "${name}:${toString redisPort}"); in
toRedisAddresses (lib.take index nodes) ++ [
"unix://${config.services.redis.servers.centrifugo.unixSocket}"
];
] ++ toRedisAddresses (lib.drop (index + 1) nodes);
usage_stats_disable = true;
api_insecure = true;
};