Skip to content

Commit

Permalink
try another log
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Sep 5, 2023
1 parent bb6644c commit 0bb6b4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/utils/src/common/to_async_iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export async function toAsyncIterator<T extends IDecodedMessage>(
async function* iterator(): AsyncIterator<T> {
while (true) {
if (isWithTimeout && Date.now() - startTime >= timeoutMs) {
console.log("failing", "AAA");
return;
}

Expand All @@ -62,6 +63,7 @@ export async function toAsyncIterator<T extends IDecodedMessage>(
const message = messages.shift() as T;

if (!unsubscribe && messages.length === 0) {
console.log("failing", message);
return message;
}

Expand Down

0 comments on commit 0bb6b4d

Please sign in to comment.