0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🔥 Remove unnecesary metrics observe calls.

This commit is contained in:
Andrey Antukh 2021-04-07 20:18:06 +02:00
parent 166fdbd406
commit 5f7f88d299

View file

@ -172,13 +172,11 @@
(a/close! sub-ch))))
(on-error [_conn e]
(mtx-sessions :observe (/ (inst-ms (dt/duration-between created-at (dt/now))) 1000.0))
(log/tracef "on-error %s (%s)" (:session-id cfg) (ex-message e))
(a/close! out-ch)
(a/close! rcv-ch))
(on-close [_conn _status _reason]
(mtx-sessions :observe (/ (inst-ms (dt/duration-between created-at (dt/now))) 1000.0))
(log/tracef "on-close %s" (:session-id cfg))
(a/close! out-ch)
(a/close! rcv-ch))