From 64a62e4a804f7dc212395cfccbaa8ebdfb2e04a6 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 2 Jan 2022 18:19:56 -0500 Subject: [PATCH] these functions can be private --- src/aging_session/memory.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aging_session/memory.clj b/src/aging_session/memory.clj index f7352e4..bea0a20 100644 --- a/src/aging_session/memory.clj +++ b/src/aging_session/memory.clj @@ -83,7 +83,7 @@ (swap! session-map dissoc key) nil)) -(defn sweeper-thread +(defn- sweeper-thread "Sweeper thread that watches the session and cleans it." [{:keys [ttl op-counter op-threshold session-map]} sweep-interval] (loop [] @@ -93,7 +93,7 @@ (Thread/sleep sweep-interval) (recur))) -(defn in-thread +(defn- in-thread "Run a function in a thread." [f] (.start (Thread. ^Runnable f)))