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 Feb 22, 2024
1 parent fab7b26 commit dbf8481
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 dbf8481

Please sign in to comment.