On my way to implementing request rate limiter (currently code doesn't compile)