Skip to content

Commit

Permalink
Merge pull request clojure-liberator#296 from elenacanovi/fix-logs
Browse files Browse the repository at this point in the history
fix for save-logs! to avoid 'GC overhead limit exceeded'
  • Loading branch information
ordnungswidrig authored Dec 20, 2017
2 parents ed41cf6 + 5ad88be commit 1ef1ea6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/liberator/dev.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

(defn save-log! [id msg]
(swap! logs #(->> (conj % [id msg])
(take log-size))))
(take log-size)
(doall))))

(defn- with-slash [^String s] (if (.endsWith s "/") s (str s "/")))

Expand Down

0 comments on commit 1ef1ea6

Please sign in to comment.