clean: ultimately, we're not implementing a reset

This commit is contained in:
2026-03-01 12:13:52 +01:00
parent 25be9c8a1b
commit c1a9c2d22f

View File

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