Skip to content

Commit

Permalink
Wrap result in async/go
Browse files Browse the repository at this point in the history
  • Loading branch information
bplatz committed Jun 6, 2024
1 parent 53a7fe1 commit 0fd172f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/clj/fluree/db/json_ld/policy/query.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
[db flakes]
(let [error-ch (async/chan)
result-ch (filter-flakes db error-ch flakes)]
(async/alt!
result-ch ([r] r)
error-ch ([e] e))))
(async/go
(async/alt!
result-ch ([r] r)
error-ch ([e] e)))))

0 comments on commit 0fd172f

Please sign in to comment.