Skip to content

Commit

Permalink
Merge pull request #2 from danielneal/master
Browse files Browse the repository at this point in the history
Slight tweak in jetty example
  • Loading branch information
wotbrew authored Jul 11, 2019
2 parents 39e9934 + a5cc6d3 commit 8bebf06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ You can register an object with `register`, it returns the object passed as-is.
(obj/register
{ ;; all optional
:name (str "Jetty Server on port " port)
:alias [:jetty-server 8080]
:data {:handler handler :port 8080}
:alias [:jetty-server port]
:data {:handler handler :port port}
;; optional, but wise!
:stopfn (fn [server] (.stop server))})))

Expand Down

0 comments on commit 8bebf06

Please sign in to comment.