Update src/core/task/Task.ts

This commit is contained in:
Matt Rubens 2025-11-07 22:08:33 -05:00 committed by GitHub
parent fca211b7ad
commit 945c0ffe5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2703,12 +2703,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
})
}
// Legacy function for backward compatibility
const sendRateLimitUpdate = async (payload: RateLimitRetryPayload, isPartial: boolean): Promise<void> => {
const retryPayload: RetryStatusPayload = { ...payload, type: "retry_status", cause: "rate_limit" }
await sendRetryStatusUpdate(retryPayload, isPartial)
}
const runRateLimitCountdown = async ({
seconds,
origin,