Permalink
Browse files

move around the order of functions

  • Loading branch information...
ztellman committed Dec 11, 2011
1 parent d6d44c8 commit df9eb697783c2a8725c8aa03db942033a649f774
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/aleph/netty.clj
View
@@ -421,6 +421,14 @@
"readWriteFair" true,
"connectTimeoutMillis" 3000})
(defn get-port [options]
(let [port (or (:port options) (:server-port options))]
(if (= port -1)
(case (:scheme options)
"http" 80
"https" 443)
port)))
(defn parse-url [url]
(let [url-parsed (java.net.URL. url)]
{:scheme (.getProtocol url-parsed)
@@ -443,13 +451,6 @@
(swap! nio-channel-factory #(or % (NioClientSocketChannelFactory.
(Executors/newCachedThreadPool)
(Executors/newCachedThreadPool)))))
(defn get-port [options]
(let [port (or (:port options) (:server-port options))]
(if (= port -1)
(case (:scheme options)
"http" 80
"https" 443)
port)))
(defn create-client
[pipeline-fn send-encoder options]

0 comments on commit df9eb69

Please sign in to comment.