Skip to content

Commit 115c194

Browse files
committed
refactor(executeWithHandshake): simplify retry logic and remove redundant logging
1 parent f39927d commit 115c194

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

packages/lit-client/src/lib/LitClient/helpers/executeWithHandshake.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,22 +145,10 @@ export const executeWithHandshake = async <ReturnType>(
145145
const reason = retryMetadata.reason || RETRY_REASONS.generic;
146146
const refreshLabel = `${operation}-${reason}`.replace(/-+/g, '-');
147147

148-
if (
149-
reason === 'no-valid-shares' ||
150-
reason === 'network-fetch-error'
151-
) {
148+
if (reason === 'no-valid-shares' || reason === 'network-fetch-error') {
152149
await new Promise((resolve) => setTimeout(resolve, RETRY_BACKOFF_MS));
153150
}
154151

155-
console.log(
156-
'[executeWithHandshake] retrying operation',
157-
operation,
158-
'reason:',
159-
reason,
160-
'refreshLabel:',
161-
refreshLabel
162-
);
163-
164152
_logger.warn(
165153
{
166154
error,

0 commit comments

Comments
 (0)