A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: improve atproto retry logic

+2 -2
+2 -2
src/components/output/raw/atproto/element.js
··· 165 165 * @returns {Promise<T>} 166 166 */ 167 167 async #withRetry(fn) { 168 - let delay = 5_000; 168 + let delay = 30_000; 169 169 for (let attempt = 0;; attempt++) { 170 170 try { 171 171 return await fn(); 172 172 } catch (err) { 173 - if (attempt < 3 && this.#isRateLimitError(err)) { 173 + if (attempt < 5 && this.#isRateLimitError(err)) { 174 174 let wait = delay; 175 175 if (err instanceof ClientResponseError) { 176 176 const retryAfter = err.headers.get("retry-after");