fix: missing type annotations

This commit is contained in:
2026-03-01 22:20:42 +01:00
parent a23498a0ca
commit 613594ebf6

View File

@@ -85,7 +85,10 @@ fn verify_csrf(
} }
} }
fn check_rate_limit(storage, ip: String) -> Result(Nil, wisp.Response) { fn check_rate_limit(
storage: process.Subject(storage.StorageMsg),
ip: String,
) -> Result(Nil, wisp.Response) {
let rate_reply = process.new_subject() let rate_reply = process.new_subject()
process.send(storage, storage.CheckRateLimit(ip, rate_reply)) process.send(storage, storage.CheckRateLimit(ip, rate_reply))
@@ -99,7 +102,10 @@ fn check_rate_limit(storage, ip: String) -> Result(Nil, wisp.Response) {
} }
} }
fn create_paste(storage, form: wisp.FormData) -> Result(String, wisp.Response) { fn create_paste(
storage: process.Subject(storage.StorageMsg),
form: wisp.FormData,
) -> Result(String, wisp.Response) {
let encrypted_content = let encrypted_content =
list.key_find(form.values, "encrypted_content") list.key_find(form.values, "encrypted_content")
|> result.unwrap("") |> result.unwrap("")