mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Eased fetch ratelimit
This commit is contained in:
parent
b791853562
commit
0e204bdecc
@ -225,7 +225,7 @@ def get_online_embed_users(guild_id):
|
||||
|
||||
@api.route("/fetch", methods=["GET"])
|
||||
@valid_session_required(api=True)
|
||||
@rate_limiter.limit("1 per 2 second", key_func = channel_ratelimit_key)
|
||||
@rate_limiter.limit("2 per 2 second", key_func = channel_ratelimit_key)
|
||||
def fetch():
|
||||
guild_id = request.args.get("guild_id")
|
||||
channel_id = request.args.get('channel_id')
|
||||
|
@ -325,7 +325,7 @@ function run_fetch_routine() {
|
||||
fill_discord_members(guildobj.discordmembers);
|
||||
fill_authenticated_users(guildobj.embedmembers.authenticated);
|
||||
fill_unauthenticated_users(guildobj.embedmembers.unauthenticated);
|
||||
fetchtimeout = setTimeout(run_fetch_routine, 10000);
|
||||
fetchtimeout = setTimeout(run_fetch_routine, 5000);
|
||||
});
|
||||
});
|
||||
fet.fail(function(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user