presence: remove TODO

that function is already shard-aware since we started subscribing at the
websocket start instead of fetching session ids for every single
dispatch.
This commit is contained in:
Luna 2020-02-17 21:35:04 -03:00
parent f0f5570dfa
commit b1aef75bb2
1 changed files with 0 additions and 1 deletions

View File

@ -185,7 +185,6 @@ class PresenceManager:
Also dispatches the presence to all the users' friends Also dispatches the presence to all the users' friends
""" """
# TODO: shard-aware (needs to only dispatch guilds of the shard)
guild_ids = await self.user_storage.get_user_guilds(user_id) guild_ids = await self.user_storage.get_user_guilds(user_id)
for guild_id in guild_ids: for guild_id in guild_ids:
await self.dispatch_guild_pres(guild_id, user_id, presence) await self.dispatch_guild_pres(guild_id, user_id, presence)