This commit is contained in:
mattyatea 2024-04-22 21:09:11 +09:00
parent 77a91384e6
commit a9e6c8bb9c
2 changed files with 2 additions and 6 deletions

View file

@ -334,9 +334,7 @@ export class GlobalEventService {
@bindThis
public publishInternalEvent<K extends keyof InternalEventTypes>(type: K, value?: InternalEventTypes[K]): void {
console.time('time GlobalEventService.publishInternalEvent');
this.publish('internal', type, typeof value === 'undefined' ? null : value);
console.timeEnd('time GlobalEventService.publishInternalEvent');
}
@bindThis
@ -346,9 +344,7 @@ export class GlobalEventService {
@bindThis
public publishMainStream<K extends keyof MainEventTypes>(userId: MiUser['id'], type: K, value?: MainEventTypes[K]): void {
console.time('time GlobalEventService.publishMainStream');
this.publish(`mainStream:${userId}`, type, typeof value === 'undefined' ? null : value);
console.timeEnd('time GlobalEventService.publishMainStream');
}
@bindThis