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())) - } } }