Skip to content

Commit

Permalink
Type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
aphyr committed Oct 4, 2023
1 parent 181c39e commit f144556
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jepsen/src/jepsen/store/fressian.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
[jepsen [history]
[util :as util]]
[slingshot.slingshot :refer [try+ throw+]])
(:import (java.io ByteArrayOutputStream)
(:import (java.io ByteArrayOutputStream
Closeable)
(java.time Instant)
(java.util AbstractList
Collections
Expand Down Expand Up @@ -220,7 +221,7 @@
([writer-opts _ path x]
(if-let [e (with-open [; Make a writer
bos (ByteArrayOutputStream.)
w (writer bos writer-opts)]
w ^Closeable (writer bos writer-opts)]
; Try writing x
(try (fress/write-object w x)
nil
Expand Down

0 comments on commit f144556

Please sign in to comment.