Skip to content

Commit bbebb8d

Browse files
committed
docstring before arg vec
1 parent c05e5fe commit bbebb8d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Whenever you make an http request, add one or more of the hystrix-clj options to
2424
:hystrix/breaker-request-volume 20
2525
:hystrix/breaker-error-percent 50
2626
:hystrix/breaker-sleep-window-ms 5000
27-
:hystrix/bad-request-pred client-error?}}
27+
:hystrix/bad-request-pred client-error?}}
2828
```
2929
Any values not supplied will be set to their default values as above. Requests with no Hystrix-related keys won't use Hystrix.
3030

src/clj_http_hystrix/core.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@
121121
(handle-exception #(.execute command) req))
122122
(f req)))
123123

124-
(defn add-hook []
124+
(defn add-hook
125125
"Activate clj-http-hystrix to wrap all clj-http client requests as
126126
hystrix commands."
127-
(when (not (some-> (meta http/request) :robert.hooke/hooks deref (contains? #'wrap-hystrix)))
127+
[]
128+
(when-not (some-> (meta http/request) :robert.hooke/hooks deref (contains? #'wrap-hystrix))
128129
(hooke/add-hook #'http/request #'wrap-hystrix)))

0 commit comments

Comments
 (0)