Skip to content

Commit

Permalink
core.clj: avoid java.lang.Runtime deadlock riemann#617 by serializing…
Browse files Browse the repository at this point in the history
… service/start!
  • Loading branch information
AkihiroSuda committed Oct 21, 2015
1 parent 48e9f61 commit b3880fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riemann/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
(dorun (pmap #(service/reload! % merged) merged-services))

; Start merged services
(dorun (pmap service/start! merged-services))
(dorun (map service/start! merged-services))

(info "Hyperspace core online")
merged))
Expand All @@ -163,7 +163,7 @@
[core]
(let [services (core-services core)]
(dorun (pmap #(service/reload! % core) services))
(dorun (pmap service/start! services)))
(dorun (map service/start! services)))
(info "Hyperspace core online"))

(defn stop!
Expand Down

0 comments on commit b3880fa

Please sign in to comment.