Skip to content
Snippets Groups Projects
Commit 29feb356 authored by Arthur Ulfeldt's avatar Arthur Ulfeldt
Browse files

Happy linter and comments

parent 17de4cf1
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@
(def ^:private app
"The primary entry point to the Ring HTTP server."
(-> #'routes/routes
(-> #'routes/routes ; the #' is to allow tests to redefine endpoints
mb-middleware/log-api-call
mb-middleware/add-security-headers ; Add HTTP headers to API responses to prevent them from being cached
(wrap-json-body ; extracts json POST body and makes it avaliable on request
......
......@@ -393,11 +393,6 @@
(throw e)))
(recur (async/<!! output-queue)))))))
(def ^:private ^:const streaming-response-keep-alive-interval-ms
"Interval between sending whitespace bytes to keep Heroku from terminating
requests like queries that take a long time to complete."
(* 1 1000))
(defn streaming-json-response
"This midelware assumes handlers fail early or return success
Run the handler in a future and send newlines to keep the connection open
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment