 (ns topiq.core
   (:gen-class :main true)
-  (:require [clojure.core.async :refer [timeout sub chan <!! >!! <! >! go go-loop] :as async]
+  (:require [clojure.core.async :refer [timeout sub chan >!! >! go go-loop] :as async]
             [clojure.edn :as edn]
             [clojure.java.io :as io]
             [clojure.tools.logging :refer [info warn error]]

            [compojure.handler :refer [site api]]
            [compojure.route :refer [resources]]
            [kabel.middleware.block-detector :refer [block-detector]]
            [kabel.middleware.log :refer [logger]]
            [kabel.platform :refer [create-http-kit-handler!]]
            [konserve.core :as k]
            [konserve.filestore :refer [new-fs-store]]
            [konserve.memory :refer [new-mem-store]]

(defn create-store
  "Creates a konserve store"
  [state]
  (swap! state assoc :store (<?? (new-mem-store) #_(new-fs-store "store")))
  state)

(def hooks (atom {[#".*"
                   #uuid "26558dfe-59bb-4de4-95c3-4028c56eb5b5"]
                  [["eve@topiq.es"
                    #uuid "26558dfe-59bb-4de4-95c3-4028c56eb5b5"]]}))

(def err-ch (chan))

