Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improve code

  • Loading branch information...
commit 882e98c5086927c640d15ba79e339b66ceba96d0 1 parent 5248d4f
Ning Sun authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/clojalk/wal.clj
5 src/clojalk/wal.clj
@@ -247,9 +247,8 @@
;; A convenience function to write and flush stream
(defn- stream-write [^ s data]
- (do
- (.write s ^bytes data)
- s))
+ (doto s
+ (.write ^bytes data)))
;; Write the job record into certain log stream.
;; Here we use a `mod` function to hash job id into a log stream index.
Please sign in to comment.
Something went wrong with that request. Please try again.