Skip to content

Commit

Permalink
chord: increase user access limit
Browse files Browse the repository at this point in the history
  • Loading branch information
madawei2699 committed Mar 24, 2023
1 parent 9266805 commit b6367bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def extract_urls_from_event(event):
temp_whitelist_users = TtlSet()
temp_whitelist_channle_id = 'C04VARAS1S7'

limiter_message_per_user = 10
limiter_time_period = 2 * 3600
limiter_message_per_user = 25
limiter_time_period = 3 * 3600
limiter = RateLimiter(limit=limiter_message_per_user, period=limiter_time_period)

def is_authorized(user_id: str) -> bool:
Expand Down

0 comments on commit b6367bd

Please sign in to comment.