Fix typo
This commit is contained in:
parent
5fdb74866e
commit
05b99e21dc
@ -59,7 +59,7 @@ redis.initializeStreams = async () => {
|
|||||||
|
|
||||||
// Create transcriptions streams consumer group
|
// Create transcriptions streams consumer group
|
||||||
try {
|
try {
|
||||||
await client.xGroupCreate("communication", "mtf-devices", '0', {MKSTREAM: true});
|
await redis.client.xGroupCreate("communication", "mtf-devices", '0', {MKSTREAM: true});
|
||||||
|
|
||||||
console.log("Created consumer group: mtf-devices (communication)");
|
console.log("Created consumer group: mtf-devices (communication)");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -75,7 +75,7 @@ redis.initializeStreams = async () => {
|
|||||||
for (const deviceId of deviceIds) {
|
for (const deviceId of deviceIds) {
|
||||||
const groupName = `${deviceId}_group`;
|
const groupName = `${deviceId}_group`;
|
||||||
try {
|
try {
|
||||||
await client.xGroupCreate('communication', groupName, '0', {MKSTREAM: true});
|
await redis.client.xGroupCreate('communication', groupName, '0', {MKSTREAM: true});
|
||||||
console.log(`Created consumer group: ${groupName} (communication)`);
|
console.log(`Created consumer group: ${groupName} (communication)`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.message.includes('BUSYGROUP')) {
|
if (err.message.includes('BUSYGROUP')) {
|
||||||
@ -87,7 +87,7 @@ redis.initializeStreams = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log("Streams initialized successfully");
|
console.log("Streams initialized successfully");
|
||||||
await client.quit();
|
await redis.client.quit();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Error initializing streams:", err.message);
|
console.error("Error initializing streams:", err.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user