clean: remove PeekPaste
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user