Skip to content

Commit a0c6406

Browse files
authored
Merge pull request #593 from skynet-gh/clj-commons-byte-streams
Update byte-streams and use clj-commons namespace prefixes
2 parents 149aac2 + a13762a commit a0c6406

19 files changed

+28
-30
lines changed

examples/src/aleph/examples/http.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[compojure.route :as route]
88
[compojure.response :refer [Renderable]]
99
[aleph.http :as http]
10-
[byte-streams :as bs]
10+
[clj-commons.byte-streams :as bs]
1111
[manifold.stream :as s]
1212
[manifold.deferred :as d]
1313
[clojure.core.async :as a]

examples/src/aleph/examples/udp.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
(ns aleph.examples.udp
22
(:require
3-
[manifold.deferred :as d]
43
[manifold.stream :as s]
54
[aleph.udp :as udp]
65
[clojure.string :as str]
7-
[byte-streams :as bs]))
6+
[clj-commons.byte-streams :as bs]))
87

98
;; Full documentation for the `aleph.udp` namespace can be found [here](http://aleph.io/codox/aleph/aleph.udp.html).
109

examples/src/aleph/examples/websocket.clj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
[ring.middleware.params :as params]
55
[compojure.route :as route]
66
[aleph.http :as http]
7-
[byte-streams :as bs]
87
[manifold.stream :as s]
98
[manifold.deferred :as d]
10-
[manifold.bus :as bus]
11-
[clojure.core.async :as a]))
9+
[manifold.bus :as bus]))
1210

1311
(def non-websocket-request
1412
{:status 400
@@ -111,8 +109,8 @@
111109

112110
;; Here we create two clients, and have them speak to each other
113111
(let [conn1 @(http/websocket-client "ws://localhost:10000/chat")
114-
conn2 @(http/websocket-client "ws://localhost:10000/chat")
115-
]
112+
conn2 @(http/websocket-client "ws://localhost:10000/chat")]
113+
116114

117115
;; sign our two users in
118116
(s/put-all! conn1 ["shoes and ships" "Alice"])
@@ -126,7 +124,7 @@
126124
(s/put! conn2 "hi!")
127125

128126
@(s/take! conn1) ;=> "Bob: hi!"
129-
@(s/take! conn2) ;=> "Bob: hi!"
130-
)
127+
@(s/take! conn2)) ;=> "Bob: hi!"
128+
131129

132130
(.close s)

project.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212

1313
(def other-dependencies
1414
'[[org.clojure/tools.logging "1.1.0" :exclusions [org.clojure/clojure]]
15-
[manifold "0.1.9"]
16-
[org.clj-commons/byte-streams "0.2.10"]
15+
[manifold "0.2.3"]
16+
[org.clj-commons/byte-streams "0.3.0"]
17+
[org.clj-commons/primitive-math "1.0.0"]
1718
[potemkin "0.4.5"]])
1819

1920
(defproject aleph "0.4.7"

src/aleph/http/client.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(ns aleph.http.client
22
(:require
33
[clojure.tools.logging :as log]
4-
[byte-streams :as bs]
4+
[clj-commons.byte-streams :as bs]
55
[manifold.deferred :as d]
66
[manifold.stream :as s]
77
[aleph.http.core :as http]

src/aleph/http/client_middleware.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[manifold.deferred :as d]
99
[manifold.stream :as s]
1010
[manifold.executor :as ex]
11-
[byte-streams :as bs]
11+
[clj-commons.byte-streams :as bs]
1212
[clojure.edn :as edn]
1313
;; leave this dependency to make sure that HeaderMap is already compiled
1414
[aleph.http.core :as http])

src/aleph/http/core.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
[clojure.tools.logging :as log]
77
[clojure.set :as set]
88
[clojure.string :as str]
9-
[byte-streams :as bs]
10-
[byte-streams.graph :as g]
9+
[clj-commons.byte-streams :as bs]
10+
[clj-commons.byte-streams.graph :as g]
1111
[potemkin :as p]
1212
[clojure.java.io :as io])
1313
(:import

src/aleph/http/encoding.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(ns aleph.http.encoding
22
(:require
3-
[byte-streams :as bs]
4-
[primitive-math :as p])
3+
[clj-commons.byte-streams :as bs]
4+
[clj-commons.primitive-math :as p])
55
(:import
66
[io.netty.buffer
77
ByteBuf

src/aleph/http/multipart.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(ns aleph.http.multipart
22
(:require
33
[clojure.core :as cc]
4-
[byte-streams :as bs]
4+
[clj-commons.byte-streams :as bs]
55
[aleph.http.encoding :refer [encode]]
66
[aleph.http.core :as http-core]
77
[aleph.netty :as netty]

src/aleph/http/server.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[aleph.http.core :as http]
44
[aleph.netty :as netty]
55
[aleph.flow :as flow]
6-
[byte-streams :as bs]
6+
[clj-commons.byte-streams :as bs]
77
[clojure.tools.logging :as log]
88
[clojure.string :as str]
99
[manifold.deferred :as d]

0 commit comments

Comments
 (0)