Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sordina committed May 24, 2014
1 parent 4f68ba2 commit ef96f73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/consult/httpkitdnssr.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
(defn dig2 [service]
(let [ url (str "http://127.0.0.1:8500/v1/catalog/service/" service)
response @(http/get url)
body (or (:body response) (throw (ex-info "No body returned in response to consul service query" response)))
body (or (:body response)
(throw (ex-info "No body returned in response to consul service query" response)))
result (json/read-str body)
]
(rand-nth result)))
Expand Down

0 comments on commit ef96f73

Please sign in to comment.