Skip to content

Commit

Permalink
fix for save-logs! to avoid 'GC overhead limit exceeded'
Browse files Browse the repository at this point in the history
  • Loading branch information
elenacanovi committed Dec 15, 2017
1 parent ed41cf6 commit 5ad88be
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 5ad88be

Please sign in to comment.