aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/data/user.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-08 18:06:35 +0800
committercrupest <crupest@outlook.com>2020-08-08 18:06:35 +0800
commit9d421cf555774e437f156347c0502170f475c544 (patch)
tree53a46f82b6a24afe795071a8d54847bf7d2d036a /Timeline/ClientApp/src/app/data/user.ts
parent8b8290701b665dbe6ad1742a5691e4838bbbb997 (diff)
downloadtimeline-9d421cf555774e437f156347c0502170f475c544.tar.gz
timeline-9d421cf555774e437f156347c0502170f475c544.tar.bz2
timeline-9d421cf555774e437f156347c0502170f475c544.zip
Remove queue.
Diffstat (limited to 'Timeline/ClientApp/src/app/data/user.ts')
-rw-r--r--Timeline/ClientApp/src/app/data/user.ts9
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) {