Skip to content

Commit

Permalink
Merge pull request #48 from CreativeQuantum/main
Browse files Browse the repository at this point in the history
Fix reflection warning
  • Loading branch information
wkok committed Jan 1, 2024
2 parents cc5e17f + 2005c64 commit 71bb03d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
:test {:extra-paths ["test"]
:extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
io.github.cognitect-labs/test-runner
{:git/tag "v0.5.0" :git/sha "48c3c67"}}}}}
{:git/tag "v0.5.0" :git/sha "48c3c67"}}
:main-opts ["-e" "(set! *warn-on-reflection* true)"]}}}
2 changes: 1 addition & 1 deletion src/wkok/openai_clojure/sse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
data (slurp (byte-array next-byte-coll))]
(if-let [es (not-empty (re-seq event-mask data))]
(if (every? true? (map #(a/>!! events %) es))
(recur (drop (apply + (map #(count (.getBytes %)) es))
(recur (drop (apply + (map #(count (.getBytes ^String %)) es))
next-byte-coll))

;; Output stream closed, exiting read-loop
Expand Down

0 comments on commit 71bb03d

Please sign in to comment.