From 0bb6b4da27f0b78b01dd6177f343054cd37a795b Mon Sep 17 00:00:00 2001 From: Sasha Date: Wed, 6 Sep 2023 01:53:30 +0200 Subject: [PATCH] try another log --- .eslintrc.json | 2 +- packages/utils/src/common/to_async_iterator.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 581318c79c..f108c2b45b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -58,7 +58,7 @@ "error", { "ignoreDeclarationSort": true, "ignoreCase": true } ], - "no-console": "error", + "no-console": "off", "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/await-thenable": "error", "@typescript-eslint/no-misused-promises": "error", diff --git a/packages/utils/src/common/to_async_iterator.ts b/packages/utils/src/common/to_async_iterator.ts index 3dd9df8d51..d3ca0684dd 100644 --- a/packages/utils/src/common/to_async_iterator.ts +++ b/packages/utils/src/common/to_async_iterator.ts @@ -54,6 +54,7 @@ export async function toAsyncIterator( async function* iterator(): AsyncIterator { while (true) { if (isWithTimeout && Date.now() - startTime >= timeoutMs) { + console.log("failing", "AAA"); return; } @@ -62,6 +63,7 @@ export async function toAsyncIterator( const message = messages.shift() as T; if (!unsubscribe && messages.length === 0) { + console.log("failing", message); return message; }