Fixes rate limiting, adds more logs

This commit is contained in:
2024-07-03 08:54:58 -07:00
parent 49aec3ccf5
commit 0bb6ed2c6d

View File

@@ -35,7 +35,7 @@
(def manifold-api-stream
(let [stream (s/stream 100)]
(->> stream
(s/throttle 50)
(s/throttle 25)
(s/map (fn [[request attempt response-deferred]]
(de/catch
(de/chain
@@ -70,7 +70,7 @@
(fn [error]
(de/error! response-deferred error)))))
(s/buffer 50)
(s/buffer 25)
(s/realize-each)
(s/consume (fn [_]
#_(log/info ::request-completed
@@ -402,7 +402,9 @@
(s/reduce into []))))
(de/catch (fn [e]
(log/error ::cant-create-results
:exception e)))))))
:exception e
:client client
:location location)))))))
(defn get-payment [client p]