mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
build: enable additional oxlint rules
This commit is contained in:
@@ -84,9 +84,7 @@ export async function withRetry<T>(
|
||||
// Schedule the next retry with the configured backoff.
|
||||
if (attempt < policy.maxRetries) {
|
||||
const delay =
|
||||
policy.backoff === "exponential"
|
||||
? policy.baseDelayMs * Math.pow(2, attempt)
|
||||
: policy.baseDelayMs;
|
||||
policy.backoff === "exponential" ? policy.baseDelayMs * 2 ** attempt : policy.baseDelayMs;
|
||||
|
||||
logger?.debug?.(
|
||||
`[qqbot:retry] Attempt ${attempt + 1} failed, retrying in ${delay}ms: ${lastError.message.slice(0, 100)}`,
|
||||
|
||||
Reference in New Issue
Block a user