[#556] remove warning
This commit is contained in:
parent
322157bed1
commit
eb3457a35e
1 changed files with 1 additions and 11 deletions
|
|
@ -2,17 +2,7 @@
|
|||
(:require [org.httpkit.server :as server]
|
||||
[sci.core :as sci :refer [copy-var]]))
|
||||
|
||||
(def warning
|
||||
"WARNING: the org.httpkit.server namespace is experimental and may sat or be removed in future versions of babashka, depending on feedback from the community.
|
||||
Please leave a note at https://github.com/borkdude/babashka/issues/556 to let us know how you are using it.
|
||||
You can turn this warning off using -Dbabashka.httpkit-server.warning=false
|
||||
This namespace will remain available under a feature flag, see https://github.com/borkdude/babashka/blob/master/doc/build.md#feature-flags")
|
||||
|
||||
(def sns (sci/create-ns 'org.httpkit.server
|
||||
{:sci.impl/required-fn (fn [_]
|
||||
(when-not (= "false" (System/getProperty "babashka.httpkit-server.warning"))
|
||||
(binding [*out* @sci/err]
|
||||
(println warning))))}))
|
||||
(def sns (sci/create-ns 'org.httpkit.server nil))
|
||||
|
||||
(def httpkit-server-namespace
|
||||
{:obj sns
|
||||
|
|
|
|||
Loading…
Reference in a new issue