Fixes rate limiting, adds more logs
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
(def manifold-api-stream
|
(def manifold-api-stream
|
||||||
(let [stream (s/stream 100)]
|
(let [stream (s/stream 100)]
|
||||||
(->> stream
|
(->> stream
|
||||||
(s/throttle 50)
|
(s/throttle 25)
|
||||||
(s/map (fn [[request attempt response-deferred]]
|
(s/map (fn [[request attempt response-deferred]]
|
||||||
(de/catch
|
(de/catch
|
||||||
(de/chain
|
(de/chain
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
(fn [error]
|
(fn [error]
|
||||||
(de/error! response-deferred error)))))
|
(de/error! response-deferred error)))))
|
||||||
|
|
||||||
(s/buffer 50)
|
(s/buffer 25)
|
||||||
(s/realize-each)
|
(s/realize-each)
|
||||||
(s/consume (fn [_]
|
(s/consume (fn [_]
|
||||||
#_(log/info ::request-completed
|
#_(log/info ::request-completed
|
||||||
@@ -402,7 +402,9 @@
|
|||||||
(s/reduce into []))))
|
(s/reduce into []))))
|
||||||
(de/catch (fn [e]
|
(de/catch (fn [e]
|
||||||
(log/error ::cant-create-results
|
(log/error ::cant-create-results
|
||||||
:exception e)))))))
|
:exception e
|
||||||
|
:client client
|
||||||
|
:location location)))))))
|
||||||
|
|
||||||
|
|
||||||
(defn get-payment [client p]
|
(defn get-payment [client p]
|
||||||
|
|||||||
Reference in New Issue
Block a user