[PR #78] Add rate limiter for insertions and deletions #148

Open
opened 2026-02-27 10:15:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/78
Author: @cgzones
Created: 11/12/2024
Status: 🔄 Open

Base: masterHead: ratelimits


📝 Commits (1)

  • 056303b Add rate limiter for insertions and deletions

📊 Changes

14 files changed (+176 additions, -21 deletions)

View changed files

📝 Cargo.lock (+23 -0)
📝 README.md (+2 -0)
📝 crates/wastebin_core/src/env.rs (+4 -0)
📝 crates/wastebin_server/Cargo.toml (+1 -0)
📝 crates/wastebin_server/src/env.rs (+22 -2)
📝 crates/wastebin_server/src/errors.rs (+6 -4)
📝 crates/wastebin_server/src/handlers/delete/api.rs (+5 -3)
📝 crates/wastebin_server/src/handlers/delete/form.rs (+5 -3)
📝 crates/wastebin_server/src/handlers/delete/mod.rs (+28 -0)
📝 crates/wastebin_server/src/handlers/insert/api.rs (+7 -4)
📝 crates/wastebin_server/src/handlers/insert/form.rs (+7 -5)
📝 crates/wastebin_server/src/handlers/insert/mod.rs (+28 -0)
📝 crates/wastebin_server/src/main.rs (+29 -0)
📝 crates/wastebin_server/src/test_helpers.rs (+9 -0)

📄 Description

Add options to rate limit insertion and deletions. Disabled by default.


🔄 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/matze/wastebin/pull/78 **Author:** [@cgzones](https://github.com/cgzones) **Created:** 11/12/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `ratelimits` --- ### 📝 Commits (1) - [`056303b`](https://github.com/matze/wastebin/commit/056303ba514cbd944d51dea4ff02c0e68dbcad5d) Add rate limiter for insertions and deletions ### 📊 Changes **14 files changed** (+176 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+23 -0) 📝 `README.md` (+2 -0) 📝 `crates/wastebin_core/src/env.rs` (+4 -0) 📝 `crates/wastebin_server/Cargo.toml` (+1 -0) 📝 `crates/wastebin_server/src/env.rs` (+22 -2) 📝 `crates/wastebin_server/src/errors.rs` (+6 -4) 📝 `crates/wastebin_server/src/handlers/delete/api.rs` (+5 -3) 📝 `crates/wastebin_server/src/handlers/delete/form.rs` (+5 -3) 📝 `crates/wastebin_server/src/handlers/delete/mod.rs` (+28 -0) 📝 `crates/wastebin_server/src/handlers/insert/api.rs` (+7 -4) 📝 `crates/wastebin_server/src/handlers/insert/form.rs` (+7 -5) 📝 `crates/wastebin_server/src/handlers/insert/mod.rs` (+28 -0) 📝 `crates/wastebin_server/src/main.rs` (+29 -0) 📝 `crates/wastebin_server/src/test_helpers.rs` (+9 -0) </details> ### 📄 Description Add options to rate limit insertion and deletions. Disabled by default. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/wastebin-matze#148
No description provided.