Re: clojure.lang.LazySeq cannot be cast to clojure.lang.IFn

2015-05-08 Thread Ray Miller
Looks like the exception is thrown during config parsing. You probably need to enclose the email addresses in a vector [] rather than a list (). Ray. On 8 May 2015 at 08:01, Alexey Astafyev wrote: > I'm new to Riemann and Clojure. All I want to do is to send email > notifications to three email

Re: clojure.lang.LazySeq cannot be cast to clojure.lang.IFn

2015-05-08 Thread Luc Préfontaine
Dunno riemann but I would say that you need a closure here, not an immediate call to notify. The closure will be called when expiration is reached. So use #(notify ...) instead. In your current code notify gets called, return a lazy seq (for) and then the lazy seq is called as a function wh