Skip to content

Commit

Permalink
not sure about this workflow or anything
Browse files Browse the repository at this point in the history
  • Loading branch information
patbrown committed Jan 12, 2024
1 parent 0dc833b commit 46a3d66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/xiana/webserver.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
AutoCloseable
(close [this]
(log/info "Stop webserver" (:options this))
(server/stop-server (:server this))))
((:server this) :timeout 100)))

(defn- make
"Web server instance."
[dependencies]
(let [options (:webserver dependencies (:xiana/web-server dependencies))]
(let [options (:webserver dependencies (:xiana/web-server dependencies))
server (server/run-server (handler-fn dependencies) options)]
(map->webserver
{:options options
:server (server/run-server (handler-fn dependencies) options)})))
:server server})))

(defn start
"Start web server."
Expand Down

0 comments on commit 46a3d66

Please sign in to comment.