fix: missing type annotations
This commit is contained in:
@@ -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()
|
||||
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 =
|
||||
list.key_find(form.values, "encrypted_content")
|
||||
|> result.unwrap("")
|
||||
|
||||
Reference in New Issue
Block a user