mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add log to stream loop
This commit is contained in:
@@ -19,15 +19,13 @@ export async function startStreamLoop() {
|
||||
|
||||
await RedisStreamService.startReadingLoop({
|
||||
streamName: requireEnv('STREAM_NAME'),
|
||||
delay: { base: 100, empty: 5000 },
|
||||
readBlock: 2500
|
||||
delay: { base: 10, empty: 5000 },
|
||||
readBlock: 2000
|
||||
}, processStreamEvent);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export async function processStreamEvent(data: Record<string, string>) {
|
||||
try {
|
||||
const eventType = data._type;
|
||||
|
||||
Reference in New Issue
Block a user