Skip to content

Commit 6ef35cd

Browse files
committed
typo
1 parent 81be013 commit 6ef35cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/clj_http_hystrix/core.clj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
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))]
@@ -104,7 +104,7 @@
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]
@@ -120,7 +120,7 @@
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

0 commit comments

Comments
 (0)