Skip to content

Commit 90d7501

Browse files
committed
key->application-protocol-name -> ->application-protocol-name
1 parent 1d9bca2 commit 90d7501

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/aleph/http/common.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@
124124

125125
(def supported-http-versions #{:http1 :http2})
126126
(def supported-http-protocol-names (into #{}
127-
(map netty/key->application-protocol-name)
127+
(map netty/->application-protocol-name)
128128
supported-http-versions))
129129

130130
(defn- assert-consistent-alpn-config! [alpn-protocols desired-http-versions]
131-
(let [desired-http-protocols (map netty/key->application-protocol-name desired-http-versions)
131+
(let [desired-http-protocols (map netty/->application-protocol-name desired-http-versions)
132132
alpn-http-protocols (filter supported-http-protocol-names alpn-protocols)]
133133
(when-not (= desired-http-protocols alpn-http-protocols)
134134
(let [emsg (if-let [missing-http-protocols (seq (remove (set alpn-http-protocols) desired-http-protocols))]

src/aleph/netty.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@
900900
:openssl SslProvider/OPENSSL
901901
:openssl-refcnt SslProvider/OPENSSL_REFCNT))
902902

903-
(def key->application-protocol-name
903+
(def ->application-protocol-name
904904
{:http1 ApplicationProtocolNames/HTTP_1_1
905905
:http2 ApplicationProtocolNames/HTTP_2})
906906

0 commit comments

Comments
 (0)