Skip to content

Commit

Permalink
system repl: reader quote when passing handler to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Sep 5, 2024
1 parent 09b1daf commit 76bf890
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/service-repl-workflow/integrant/integrant-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ HTTP server start - returns function to stop the server
(defmethod ig/init-key ::http-server
[_ {:keys [handler port join?]}]
(mulog/log ::http-server-component :handler handler :port port :local-time (java.time.LocalDateTime/now))
(http-server/run-server handler {:port port :join? join?}))
(http-server/run-server #'handler {:port port :join? join?}))
```

!!! HINT "Quote handler function to evaluate changes"
Use `#'` reader quote when passing the `handler` function to the server so that changes to the code called by the handler function can be updated by evaluating those changes in the REPL.


## Shutdown Components

Define how each component should be halted (if required)
Expand Down

0 comments on commit 76bf890

Please sign in to comment.