Skip to content

Commit

Permalink
[fix] Unnecessary boxed math in (community) rotor appender
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Dec 19, 2023
1 parent 2a9c203 commit 1998bf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taoensso/timbre/appenders/community/rotor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
backlog 5}}]]
{:enabled? true
:fn
(let [lock (Object.)]
(let [lock (Object.)
max-size (long max-size)]
(fn [data]
(let [{:keys [output_]} data
output-str (str (force output_) "\n")]
Expand Down

0 comments on commit 1998bf8

Please sign in to comment.