init_rate_limit function

Initialize rate limiting state