queue_processors: Document when can remove compatibility code.

This commit is contained in:
Tim Abbott 2021-04-16 09:55:14 -07:00
parent c3a8a15bae
commit 260861426c
1 changed files with 3 additions and 1 deletions

View File

@ -482,7 +482,9 @@ class UserActivityWorker(LoopQueueProcessingWorker):
# This is for compatibility with older events still stuck in the queue, # This is for compatibility with older events still stuck in the queue,
# that used the client name in event["client"] instead of having # that used the client name in event["client"] instead of having
# event["client_id"] directly. # event["client_id"] directly.
# TODO: This can be deleted for release >= 4.0. #
# TODO/compatability: We can delete this once it is no
# longer possible to directly upgrade from 2.1 to master.
if event["client"] not in self.client_id_map: if event["client"] not in self.client_id_map:
client = get_client(event["client"]) client = get_client(event["client"])
self.client_id_map[event["client"]] = client.id self.client_id_map[event["client"]] = client.id