mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-12 01:27:38 +01:00
fix: remove hardcoded name for sentinel, #13794
This commit is contained in:
@@ -22,7 +22,6 @@ connection.connect = async function (options) {
|
|||||||
const sentinelRootNodes = options.sentinels.map(sentinel => ({ host: sentinel.host, port: sentinel.port }));
|
const sentinelRootNodes = options.sentinels.map(sentinel => ({ host: sentinel.host, port: sentinel.port }));
|
||||||
cxn = createSentinel({
|
cxn = createSentinel({
|
||||||
...options.options,
|
...options.options,
|
||||||
name: 'sentinel-db',
|
|
||||||
sentinelRootNodes,
|
sentinelRootNodes,
|
||||||
});
|
});
|
||||||
} else if (redis_socket_or_host && String(redis_socket_or_host).indexOf('/') >= 0) {
|
} else if (redis_socket_or_host && String(redis_socket_or_host).indexOf('/') >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user