 (ns ctia.flows.hooks.event-hooks
-  (:require [clojure.tools.logging :as log])
   (:require
+   [clojure.tools.logging :as log]
    [ctia.events :as events]
    [ctia.flows.hook-protocol :refer [Hook]]
    [ctia.lib.redis :as lr]

  (destroy [_]
    :nothing)
  (handle [_ event _]
    (lr/publish conn
                publish-channel-name
                event)
    event))

(defn redis-event-publisher []

  (destroy [_]
    :nothing)
  (handle [_ event _]
    (try
      (events/send-event event)
      (catch Exception e
        (log/error e "Unable to push an event to Redis")))
    event))

(defn- judgement?
