From c1a9c2d22f6f591dd96689e369ac52958eed99c3 Mon Sep 17 00:00:00 2001 From: Kharec Date: Sun, 1 Mar 2026 12:13:52 +0100 Subject: [PATCH] clean: ultimately, we're not implementing a reset --- src/storage.gleam | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/storage.gleam b/src/storage.gleam index 6493a14..d278686 100644 --- a/src/storage.gleam +++ b/src/storage.gleam @@ -13,7 +13,6 @@ pub type StorageMsg { CreatePaste(key: String, content: String, reply: process.Subject(Bool)) GetPaste(key: String, reply: process.Subject(Option(String))) CheckRateLimit(ip: String, reply: process.Subject(Bool)) - ResetRateLimits } fn lookup_paste(state: StorageState, key: String) -> Option(String) { @@ -55,9 +54,6 @@ pub fn handle_message(state: StorageState, msg: StorageMsg) { process.send(reply, allowed) actor.continue(StorageState(state.pastes, new_limits)) } - ResetRateLimits -> { - actor.continue(StorageState(state.pastes, dict.new())) - } } }