Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cljc/sixsq/nuvla/client/async.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
(:refer-clojure :exclude [get])
#?(:cljs (:require-macros [cljs.core.async.macros :refer [go]]))
(:require
[clojure.core.async :refer #?(:clj [chan >! <! go]
:cljs [chan >! <!])]
[clojure.core.async :refer #?(:clj [<! go]
:cljs [<!])]
[sixsq.nuvla.client.authn :as authn]
[sixsq.nuvla.client.api :as api]
[sixsq.nuvla.client.impl.async :as cimi-impl]
Expand Down
12 changes: 6 additions & 6 deletions src/cljc/sixsq/nuvla/client/impl/async.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(:require
[cemerick.url :as url]
[clojure.core.async :refer #?(:clj [chan <! go]
:cljs [chan <! >!])]
:cljs [chan <!])]
[sixsq.nuvla.client.impl.utils.cimi :as u]
[sixsq.nuvla.client.impl.utils.common :as cu]
[sixsq.nuvla.client.impl.utils.error :as e]
Expand Down Expand Up @@ -135,11 +135,11 @@
"Reads the resource identified by the URL or resource id. Returns the
resource as an edn data structure in a channel."
[{:keys [token cep] :as _state} url-or-id options]
(let [url (cu/ensure-url (:base-uri cep) url-or-id)]
(let [opts (-> (cu/req-opts token)
(merge options)
assoc-chan)]
(http/get url opts))))
(let [url (cu/ensure-url (:base-uri cep) url-or-id)
opts (-> (cu/req-opts token)
(merge options)
assoc-chan)]
(http/get url opts)))


(defn get-sse
Expand Down
6 changes: 3 additions & 3 deletions src/cljc/sixsq/nuvla/client/impl/utils/cimi.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"This extracts the HTTP response body (rendered as keywordized EDN) and the
value of the set-cookie header and returns a tuple with the two values in
that order."
[{:keys [body] {:keys [set-cookie]} :headers :as response}]
[{:keys [body] {:keys [set-cookie]} :headers :as _response}]
[(json/json->edn body) set-cookie])


Expand Down Expand Up @@ -111,7 +111,7 @@
"Extracts the absolute URL for the named collection from the cloud entry
point. The collection name can be provided either as a string or a keyword
(preferred). Returns nil if the collection does not exist."
[{:keys [base-uri collections] :as cep} collection-name]
[{:keys [base-uri collections] :as _cep} collection-name]
(when (and base-uri collection-name)
(let [collection (keyword collection-name)]
(some->> collections
Expand All @@ -124,7 +124,7 @@
"Verifies that the value of `collection-url` is the URL for one of the
collections defined in the cloud entry point. If it is, then the URL is
returned; if not, then nil is returned."
[{:keys [base-uri collections] :as cep} collection-url]
[{:keys [base-uri collections] :as _cep} collection-url]
(when (and base-uri collection-url)
(let [collection-urls-set (->> collections
vals
Expand Down
2 changes: 1 addition & 1 deletion src/cljc/sixsq/nuvla/client/impl/utils/http_async.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
(request-async! :delete url req))

(defn sse
[url & [{:keys [options] :as opts}]]
[url & [opts]]
(request-event-source! url opts))