I am trying to implement a rate-limiting handler with Kemal.
I have a class, RateLimiter
, that inherits the class Kemal::Handler
. On compile I get the error:
Error in src/rate_limiter.cr:5: superclass mismatch for class RateLimiter (Kemal::Handler for Reference)
I'm new to Crystal and that means nothing to me. What am I doing wrong?