mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Update rate limit function signature
This commit is contained in:
parent
c8b6f0fb1c
commit
326c86f94e
1 changed files with 2 additions and 2 deletions
|
@ -23,10 +23,10 @@ if ( ! function_exists('rate_limit'))
|
|||
* @link https://github.com/alexandrugaidei-atomate/ratelimit-codeigniter-filebased
|
||||
*
|
||||
* @param string $ip Client IP address.
|
||||
* @param int $max_requests Number of allowed requests, defaults to 200.
|
||||
* @param int $max_requests Number of allowed requests, defaults to 100.
|
||||
* @param int $duration In seconds, defaults to 2 minutes.
|
||||
*/
|
||||
function rate_limit($ip, $max_requests = 100, $duration = 120)
|
||||
function rate_limit(string $ip, int $max_requests = 100, int $duration = 120)
|
||||
{
|
||||
$CI =& get_instance();
|
||||
|
||||
|
|
Loading…
Reference in a new issue