clean: remove PeekPaste

This commit is contained in:
2026-03-01 12:10:46 +01:00
parent 77fbc2e0bb
commit 25be9c8a1b

View File

@@ -12,7 +12,6 @@ pub type StorageState {
pub type StorageMsg {
CreatePaste(key: String, content: String, reply: process.Subject(Bool))
GetPaste(key: String, reply: process.Subject(Option(String)))
PeekPaste(key: String, reply: process.Subject(Option(String)))
CheckRateLimit(ip: String, reply: process.Subject(Bool))
ResetRateLimits
}
@@ -32,10 +31,6 @@ pub fn handle_message(state: StorageState, msg: StorageMsg) {
process.send(reply, True)
actor.continue(StorageState(new_pastes, state.rate_limits))
}
PeekPaste(key, reply) -> {
process.send(reply, lookup_paste(state, key))
actor.continue(state)
}
GetPaste(key, reply) -> {
let content = lookup_paste(state, key)
let new_pastes =