File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 6666 (.withCoreSize threads)
6767 (.withMaxQueueSize (:hystrix/queue-size config 5 ))
6868 (.withQueueSizeRejectionThreshold (:hystrix/queue-size config 5 )))]
69- (-> (HystrixCommand$Setter/withGroupKey (group-key group))
70- (.andCommandKey (command-key (:hystrix/command-key config :default )))
71- (.andCommandPropertiesDefaults command-configurator)
72- (.andThreadPoolPropertiesDefaults thread-pool-configurator))))
69+ (doto (HystrixCommand$Setter/withGroupKey (group-key group))
70+ (.andCommandKey (command-key (:hystrix/command-key config :default )))
71+ (.andCommandPropertiesDefaults command-configurator)
72+ (.andThreadPoolPropertiesDefaults thread-pool-configurator))))
7373
7474(defn ^:private log-error [command-name ^HystrixCommand context]
7575 (let [message (format " Failed to complete %s %s" command-name (.getExecutionEvents context))]
104104 :message " Bad request pred"
105105 :stack-trace (stack-trace )})))
106106 resp))
107- wrap-exception-reponse (fn [resp] ((http/wrap-exceptions (constantly resp)) (assoc req :throw-exceptions true )))
107+ wrap-exception-response (fn [resp] ((http/wrap-exceptions (constantly resp)) (assoc req :throw-exceptions true )))
108108 ^HystrixCommand$Setter configurator (configurator req)
109109 logging-context (or (MDC/getCopyOfContextMap ) {})
110110 command (proxy [HystrixCommand] [configurator]
120120 (assoc :throw-exceptions false )
121121 f
122122 wrap-bad-request
123- wrap-exception-reponse )))]
123+ wrap-exception-response )))]
124124 (handle-exception #(.execute command) req))
125125 (f req)))
126126
You can’t perform that action at this time.
0 commit comments