Skip to content

Commit d07f18c

Browse files
gmsvalentepuchka
andauthored
Update src/xiana/hotreload.clj
Co-authored-by: A. Marius Rabenarivo <[email protected]>
1 parent 79d2b4a commit d07f18c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/xiana/hotreload.clj

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55

66
;; reloader function from ring.middleware.reload
77

8-
(defn- reloader [dirs retry?]
8+
(defn- reloader
9+
"Reload namespaces of modified files before the request is passed to the
10+
supplied handler.
11+
12+
Accepts the following options:
13+
14+
:dirs - A list of directories that contain the source files.
15+
Defaults to ["src"].
16+
:retry? - If true, keep attempting to reload namespaces
17+
that have compile errors. Defaults to true."
18+
[dirs retry?]
919
(let [modified-namespaces (ns-tracker dirs)
1020
load-queue (java.util.concurrent.LinkedBlockingDeque.)]
1121
(fn []

0 commit comments

Comments
 (0)