Skip to content

Commit

Permalink
send market values every 30 seconds (even if they're refreshed every …
Browse files Browse the repository at this point in the history
…2 minutes)
  • Loading branch information
mpisanko committed Sep 3, 2024
1 parent 1137ff2 commit 4cd71d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference-service/src/reference_service/web/socket.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
(when-let [previous (:price-update-stream @client)]
(s/close! previous))
(let [price-stream (s/periodically
(:price-update-interval-ms @client)
30000
0 ;; start immediately
(fn []
(log/info "Sending market prices for " (:securities @account))
Expand Down

0 comments on commit 4cd71d7

Please sign in to comment.