From 85f3255f943a0420c9d6a2a519a3eb64669b00f4 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 8 Aug 2020 18:06:35 +0800 Subject: Remove queue. --- Timeline/ClientApp/src/app/data/user.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Timeline/ClientApp/src/app/data/user.ts') diff --git a/Timeline/ClientApp/src/app/data/user.ts b/Timeline/ClientApp/src/app/data/user.ts index 1d2d6f88..8b299c38 100644 --- a/Timeline/ClientApp/src/app/data/user.ts +++ b/Timeline/ClientApp/src/app/data/user.ts @@ -7,7 +7,6 @@ import { pushAlert } from '../common/alert-service'; import { dataStorage } from './common'; import { SubscriptionHub, ISubscriptionHub } from './SubscriptionHub'; -import { queue } from './queue'; import { HttpNetworkError, BlobWithEtag, NotModified } from '../http/common'; import { @@ -239,14 +238,6 @@ export class UserInfoService { private async fetchAndCacheAvatar( username: string - ): Promise<{ data: Blob; type: 'synced' | 'cache' } | 'offline'> { - return queue(`UserService.fetchAndCacheAvatar.${username}`, () => - this.doFetchAndCacheAvatar(username) - ); - } - - private async doFetchAndCacheAvatar( - username: string ): Promise<{ data: Blob; type: 'synced' | 'cache' } | 'offline'> { const key = this.getAvatarKey(username); const cache = await dataStorage.getItem(key); -- cgit v1.2.3