have the http-kit instance returned as an HttpServer instance
this is more flexible, allowing a few http-kit functions to be called against it (including one to stop http-kit), versus the alternate return type which is just a simple function that can be called to stop http-kit this is ALSO what i thought i had done already, thus why the stop function found below in this very same defstate is written to call `http-kit/server-stop!` which won't actually work without setting legacy-return-value? to false. oopsie! :-)
This commit is contained in:
parent
f7dbd17c89
commit
aa1aa76bbf
|
@ -169,9 +169,10 @@
|
||||||
bind "0.0.0.0"}} (:http-server config)
|
bind "0.0.0.0"}} (:http-server config)
|
||||||
server (http-kit/run-server
|
server (http-kit/run-server
|
||||||
(wrap-base #'handler)
|
(wrap-base #'handler)
|
||||||
{:port port
|
{:port port
|
||||||
:ip bind
|
:ip bind
|
||||||
:server-header nil})]
|
:server-header nil
|
||||||
|
:legacy-return-value? false})]
|
||||||
(log/info (format "Started HTTP server listening on %s:%d" bind port))
|
(log/info (format "Started HTTP server listening on %s:%d" bind port))
|
||||||
server)
|
server)
|
||||||
:stop
|
:stop
|
||||||
|
|
Loading…
Reference in a new issue