mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 16:06:10 +02:00
♻️ Refactor http server layer
Make it fully asynchronous.
This commit is contained in:
parent
a7e79b13f9
commit
1b444a42f2
28 changed files with 615 additions and 630 deletions
|
@ -23,8 +23,6 @@
|
|||
io.prometheus.client.Histogram$Child
|
||||
io.prometheus.client.exporter.common.TextFormat
|
||||
io.prometheus.client.hotspot.DefaultExports
|
||||
io.prometheus.client.jetty.JettyStatisticsCollector
|
||||
org.eclipse.jetty.server.handler.StatisticsHandler
|
||||
java.io.StringWriter))
|
||||
|
||||
(set! *warn-on-reflection* true)
|
||||
|
@ -265,9 +263,9 @@
|
|||
:summary (make-summary props)
|
||||
:histogram (make-histogram props)))
|
||||
|
||||
(defn instrument-jetty!
|
||||
[^CollectorRegistry registry ^StatisticsHandler handler]
|
||||
(doto (JettyStatisticsCollector. handler)
|
||||
(.register registry))
|
||||
nil)
|
||||
;; (defn instrument-jetty!
|
||||
;; [^CollectorRegistry registry ^StatisticsHandler handler]
|
||||
;; (doto (JettyStatisticsCollector. handler)
|
||||
;; (.register registry))
|
||||
;; nil)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue