We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493e28a commit 1d28386Copy full SHA for 1d28386
src/llar/config.clj
@@ -11,6 +11,7 @@
11
[slingshot.slingshot :refer [try+]]
12
[llar.fetchutils :refer [make-reddit-proc]]
13
[llar.human :as human]
14
+ [llar.src :as src]
15
[llar.fetch.custom]
16
[llar.fetch.feed]
17
[llar.fetch.http]
@@ -55,6 +56,8 @@
55
56
;; TODO validate pre / post
57
(defmacro fetch
58
[src-key src & body]
59
+ (s/valid? symbol? src-key)
60
+ (s/valid? src/source? src)
61
(let [{:keys [options tags post pre rm post-fns pre-fns rm-fn]
62
:or {options #{} tags #{}}}
63
(apply hash-map body)
0 commit comments