Skip to content

Commit a13762a

Browse files
committed
Feedback: update byte-streams require in example
1 parent 563d854 commit a13762a

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
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)

0 commit comments

Comments
 (0)