these functions can be private
This commit is contained in:
parent
2724754021
commit
64a62e4a80
|
@ -83,7 +83,7 @@
|
||||||
(swap! session-map dissoc key)
|
(swap! session-map dissoc key)
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
(defn sweeper-thread
|
(defn- sweeper-thread
|
||||||
"Sweeper thread that watches the session and cleans it."
|
"Sweeper thread that watches the session and cleans it."
|
||||||
[{:keys [ttl op-counter op-threshold session-map]} sweep-interval]
|
[{:keys [ttl op-counter op-threshold session-map]} sweep-interval]
|
||||||
(loop []
|
(loop []
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
(Thread/sleep sweep-interval)
|
(Thread/sleep sweep-interval)
|
||||||
(recur)))
|
(recur)))
|
||||||
|
|
||||||
(defn in-thread
|
(defn- in-thread
|
||||||
"Run a function in a thread."
|
"Run a function in a thread."
|
||||||
[f]
|
[f]
|
||||||
(.start (Thread. ^Runnable f)))
|
(.start (Thread. ^Runnable f)))
|
||||||
|
|
Loading…
Reference in a new issue