Skip to content

Instantly share code, notes, and snippets.

@jpfuentes2
Created April 16, 2014 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpfuentes2/10936912 to your computer and use it in GitHub Desktop.
Save jpfuentes2/10936912 to your computer and use it in GitHub Desktop.
:read (try (let [value (json/parse-string (:body (consul-get client)) true)
seriousValue (-> (first value)
:Value
base64/decode
Integer.)]
(prn seriousValue)
(assoc op :type :ok :value seriousValue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment