Skip to content

Commit 47a0ab5

Browse files
repl: reader quote when passing handler to the server - donut
1 parent 76bf890 commit 47a0ab5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ The event log publisher and http service have no intrinsic relationship, so orde
110110
:http {:server
111111
#::donut{:start (fn http-kit-run-server
112112
[{{:keys [handler options]} ::donut/config}]
113-
(http-server/run-server handler options))
113+
(http-server/run-server #'handler options))
114114
:stop (fn http-kit-stop-server
115115
[{::donut/keys [instance]}]
116116
(instance))
@@ -120,6 +120,9 @@ The event log publisher and http service have no intrinsic relationship, so orde
120120
:handler (router/app (donut/ref [:env :persistence]))}}})
121121
```
122122

123+
!!! HINT "Quote handler function to evaluate changes"
124+
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.
125+
123126

124127
## Start the system
125128

0 commit comments

Comments
 (0)