valpackett / ring-ratelimit

Rate limiting middleware for Clojure Ring | now on https://codeberg.org/valpackett/ring-ratelimit
https://codeberg.org/valpackett/ring-ratelimit
79 stars 7 forks source link

Fixes NPE in redis backend #3

Closed ebaxt closed 9 years ago

ebaxt commented 9 years ago

The redis backend throws a NPE when get-hour is called if there is no "hourname" key set.

(get-hour [self]
    (Integer/parseInt (car/with-conn pool spec (car/get hourname))))
valpackett commented 9 years ago

Thanks!