Fix RATE_LIMIT_INITIALIZER
This commit is contained in:
@@ -70,8 +70,8 @@ struct RateLimit {
|
|||||||
* @param tickets number of tickets (bucket depth)
|
* @param tickets number of tickets (bucket depth)
|
||||||
* @param period per this period
|
* @param period per this period
|
||||||
*/
|
*/
|
||||||
#define UC_RATELIMIT_INITIALIZER(tickets)\
|
#define UC_RATELIMIT_INITIALIZER(tickets, period)\
|
||||||
{ tickets, period, 0, -period}
|
{ (tickets,) (period), 0, -(period)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user