Skip to content

Commit 76bf890

Browse files
system repl: reader quote when passing handler to the server
1 parent 09b1daf commit 76bf890

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/service-repl-workflow/integrant/integrant-system.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,13 @@ HTTP server start - returns function to stop the server
7272
(defmethod ig/init-key ::http-server
7373
[_ {:keys [handler port join?]}]
7474
(mulog/log ::http-server-component :handler handler :port port :local-time (java.time.LocalDateTime/now))
75-
(http-server/run-server handler {:port port :join? join?}))
75+
(http-server/run-server #'handler {:port port :join? join?}))
7676
```
7777

78+
!!! HINT "Quote handler function to evaluate changes"
79+
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.
80+
81+
7882
## Shutdown Components
7983

8084
Define how each component should be halted (if required)

0 commit comments

Comments
 (0)