[PR #752] [MERGED] feat: add RATE_LIMIT_API_DAILY_REQUESTS #741

Closed
opened 2026-02-26 21:32:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/752
Author: @dreamhunter2333
Created: 11/2/2025
Status: Merged
Merged: 11/2/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/email


📝 Commits (1)

  • 72d5fa2 feat: add RATE_LIMIT_API_DAILY_REQUESTS

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 worker/src/worker.ts (+1 -1)

📄 Description

PR Type

Enhancement, Bug fix


Description

  • Added a new environment variable RATE_LIMIT_API_DAILY_REQUESTS.

  • Implemented daily rate-limiting logic based on the new variable.

  • Fixed type handling for current_count by parsing it as an integer.

  • Improved error handling for daily rate limit exceedance.


Changes walkthrough 📝

Relevant files
Enhancement
worker.ts
Implement daily rate-limiting and fix type parsing             

worker/src/worker.ts

  • Added logic to enforce daily API request limits.
  • Introduced RATE_LIMIT_API_DAILY_REQUESTS environment variable.
  • Fixed type parsing for current_count from KV storage.
  • Enhanced error handling for rate limit exceedance.
  • +1/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/752 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 11/2/2025 **Status:** ✅ Merged **Merged:** 11/2/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/email` --- ### 📝 Commits (1) - [`72d5fa2`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/72d5fa2b43328ae9a468a92f2702ef60171de441) feat: add RATE_LIMIT_API_DAILY_REQUESTS ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `worker/src/worker.ts` (+1 -1) </details> ### 📄 Description ### **PR Type** Enhancement, Bug fix ___ ### **Description** - Added a new environment variable `RATE_LIMIT_API_DAILY_REQUESTS`. - Implemented daily rate-limiting logic based on the new variable. - Fixed type handling for `current_count` by parsing it as an integer. - Improved error handling for daily rate limit exceedance. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>worker.ts</strong><dd><code>Implement daily rate-limiting and fix type parsing</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/worker.ts <li>Added logic to enforce daily API request limits.<br> <li> Introduced <code>RATE_LIMIT_API_DAILY_REQUESTS</code> environment variable.<br> <li> Fixed type parsing for <code>current_count</code> from KV storage.<br> <li> Enhanced error handling for rate limit exceedance. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/752/files#diff-c007030a206d7e4e2a4879ba673551e7633ad914b67cfac204096edced3f80a2">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:46 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#741
    No description provided.