go-redis / redis_rate

Rate limiting for go-redis
https://redis.uptrace.dev/guide/go-redis-rate-limiting.html
BSD 2-Clause "Simplified" License
844 stars 101 forks source link

fix: panic for dragonfly 1.17 when interface convertation #99

Open akhmaos opened 6 months ago

akhmaos commented 6 months ago

For dragonfly 1.17 got error: panic: interface conversion: interface {} is float64, not int64

This commit includes type checking

Kachit commented 5 months ago

We have same problem. Please fix it.