Skip to content

Commit

Permalink
Prepare for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Dec 19, 2023
1 parent d03db02 commit 7645a9d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions runner/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { startServer as startMetricsServer } from './metrics';
import RedisClient from './redis-client';
import StreamHandler from './stream-handler';
import startServer from './service/runner-server';

const STREAM_HANDLER_THROTTLE_MS = 500;

Expand All @@ -14,14 +13,11 @@ startMetricsServer().catch((err) => {
type StreamHandlers = Record<string, StreamHandler>;

void (async function main () {
startServer();

try {
const streamHandlers: StreamHandlers = {};

while (true) {
// const streamKeys = await redisClient.getStreams();
const streamKeys: string[] = [];
const streamKeys = await redisClient.getStreams();

streamKeys.forEach((streamKey) => {
if (streamHandlers[streamKey] !== undefined) {
Expand Down

0 comments on commit 7645a9d

Please sign in to comment.