Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Minor tweaks to event-log
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby Calderwood committed Nov 24, 2016
1 parent 1f24ff0 commit 961cdbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/capitalone/commander/event_log.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
(ns com.capitalone.commander.event-log
(:require [clojure.core.async :as a]))

(set! *warn-on-reflection* true)

(defprotocol EventProducer
(-send! [this record result-ch]
"Sends a single record to the Event Log.
Returns result-ch, which will convey record metadata."))

(defn send!
"Sends a single record to the Event Log"
"Writes a single record to the Event Log"
([producer record]
(send! producer record (a/promise-chan)))
([producer record result-ch]
Expand Down

0 comments on commit 961cdbb

Please sign in to comment.