diff options
| author | crupest <crupest@outlook.com> | 2020-08-08 18:06:35 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-08-08 18:06:35 +0800 |
| commit | 85f3255f943a0420c9d6a2a519a3eb64669b00f4 (patch) | |
| tree | ea871c2bd119dac752b0d6944df3a34c3b6703b4 /Timeline/ClientApp/src/app/data/user.ts | |
| parent | dde84402e7b56de3ed7b487c2cfb4d943bff42e9 (diff) | |
| download | timeline-85f3255f943a0420c9d6a2a519a3eb64669b00f4.tar.gz timeline-85f3255f943a0420c9d6a2a519a3eb64669b00f4.tar.bz2 timeline-85f3255f943a0420c9d6a2a519a3eb64669b00f4.zip | |
Remove queue.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/user.ts')
| -rw-r--r-- | Timeline/ClientApp/src/app/data/user.ts | 9 |
1 files changed, 0 insertions, 9 deletions
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 {
@@ -240,14 +239,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<BlobWithEtag | null>(key);
if (cache == null) {
|
