perf: 优化异步认识显示名称

This commit is contained in:
Aaron3S
2022-11-15 16:29:40 +08:00
parent 8e1312e8ce
commit c63c000b10
19 changed files with 1674 additions and 1404 deletions

View File

@@ -16,7 +16,6 @@ from .models import SystemMsgSubscription, UserMsgSubscription
__all__ = ('SystemMessage', 'UserMessage', 'system_msgs', 'Message')
system_msgs = []
user_msgs = []
@@ -44,7 +43,7 @@ class MessageType(type):
return clz
@shared_task
@shared_task(verbose_name=_('Publish the station message'))
def publish_task(msg):
msg.publish()