Longer delay between heartbeats

This commit is contained in:
Jeremy Zhang 2018-10-28 02:40:03 +00:00
parent f0a295e3eb
commit a5faea5a97
2 changed files with 2 additions and 2 deletions

View File

@ -461,7 +461,7 @@
} }
primeEmbed(); primeEmbed();
setInterval(send_socket_heartbeat, 5000); setInterval(send_socket_heartbeat, 30000);
if (getParameterByName("username")) { if (getParameterByName("username")) {
$("#custom_username_field").val(getParameterByName("username")); $("#custom_username_field").val(getParameterByName("username"));
} }

View File

@ -170,7 +170,7 @@ def update_user_status(guild_id, username, user_key=None):
def bump_user_presence_timestamp(guild_id, user_type, client_key): def bump_user_presence_timestamp(guild_id, user_type, client_key):
redis_key = "MemberPresence/{}/{}/{}".format(guild_id, user_type, client_key) redis_key = "MemberPresence/{}/{}/{}".format(guild_id, user_type, client_key)
redis_store.set(redis_key, "", 15) redis_store.set(redis_key, "", 60)
def get_online_embed_user_keys(guild_id="*", user_type=None): def get_online_embed_user_keys(guild_id="*", user_type=None):
if not user_type: if not user_type: