From 9d421cf555774e437f156347c0502170f475c544 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/timeline.ts | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'Timeline/ClientApp/src/app/data/timeline.ts') diff --git a/Timeline/ClientApp/src/app/data/timeline.ts b/Timeline/ClientApp/src/app/data/timeline.ts index 51cc37e6..fa019adb 100644 --- a/Timeline/ClientApp/src/app/data/timeline.ts +++ b/Timeline/ClientApp/src/app/data/timeline.ts @@ -6,7 +6,6 @@ import { map } from 'rxjs/operators'; import { convertError } from '../utilities/rxjs'; import { dataStorage } from './common'; -import { queue } from './queue'; import { SubscriptionHub, ISubscriptionHub } from './SubscriptionHub'; import { UserAuthInfo, checkLogin, userService, userInfoService } from './user'; @@ -121,15 +120,7 @@ export class TimelineService { ); } - private fetchAndCacheTimeline( - timelineName: string - ): Promise { - return queue(`TimelineService.fetchAndCacheTimeline.${timelineName}`, () => - this.doFetchAndCacheTimeline(timelineName) - ); - } - - private async doFetchAndCacheTimeline( + private async fetchAndCacheTimeline( timelineName: string ): Promise { try { @@ -337,16 +328,7 @@ export class TimelineService { return posts; } - private fetchAndCachePosts( - timelineName: string, - notUseDataCache = false - ): Promise { - return queue(`TimelineService.fetchAndCachePosts.${timelineName}`, () => - this.doFetchAndCachePosts(timelineName, notUseDataCache) - ); - } - - private async doFetchAndCachePosts( + private async fetchAndCachePosts( timelineName: string, notUseDataCache = false ): Promise { -- cgit v1.2.3