Skip to content

Commit

Permalink
Revert "Simplify grouped queue 2 (#912)" and "Fix flaky grouped-queue… (
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky authored Feb 20, 2025
1 parent e41a268 commit 4320b74
Show file tree
Hide file tree
Showing 12 changed files with 609 additions and 460 deletions.
6 changes: 3 additions & 3 deletions server/src/instant/flags_impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[instant.db.transaction :as tx]
[instant.jdbc.aurora :as aurora]
[instant.model.app :as app-model]
[instant.reactive.receive-queue :as receive-queue]
[instant.reactive.receive-queue :refer [receive-q]]
[instant.reactive.session :as session]
[instant.reactive.store :as store]
[instant.util.instaql :refer [instaql-nodes->object-tree]]
Expand Down Expand Up @@ -65,7 +65,7 @@
socket {:id socket-id
:http-req nil
:ws-conn ws-conn
:receive-q receive-queue/receive-q
:receive-q receive-q
:pending-handlers (atom #{})}]

;; Get results in foreground so that flags are initialized before we return
Expand All @@ -81,7 +81,7 @@
:admin? true})
(doseq [{:keys [query]} queries]
(session/on-message {:id socket-id
:receive-q receive-queue/receive-q
:receive-q receive-q
:data (->json {:op :add-query
:q query
:return-type "tree"})}))
Expand Down
2 changes: 1 addition & 1 deletion server/src/instant/gauges.clj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
(catch Throwable t
[{:path "instant.gauges.metric-fn-error"
:value (.getMessage t)}])))])]
(into {} (keep (juxt :path :value) metrics))))
(into {} (map (juxt :path :value) metrics))))

(comment
(gauges))
Expand Down
Loading

0 comments on commit 4320b74

Please sign in to comment.