Skip to content

Commit

Permalink
fix(NextcloudBookmarks): Try to avoid draining Chrome's socket pool
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Aug 3, 2024
1 parent 222d621 commit fecfa91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/adapters/NextcloudBookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const LOCK_INTERVAL = 2 * 60 * 1000 // Set lock every two minutes while syncing

export default class NextcloudBookmarksAdapter implements Adapter, BulkImportResource, LoadFolderChildrenResource, OrderFolderResource, ClickCountResource {
private server: NextcloudBookmarksConfig
private fetchQueue: PQueue<{ concurrency: 12 }>
private fetchQueue: PQueue<{ concurrency: 2 }>
private bookmarkLock: AsyncLock
public hasFeatureBulkImport:boolean = null
private list: Bookmark[]
Expand All @@ -83,7 +83,7 @@ export default class NextcloudBookmarksAdapter implements Adapter, BulkImportRes

constructor(server: NextcloudBookmarksConfig) {
this.server = server
this.fetchQueue = new PQueue({ concurrency: 12 })
this.fetchQueue = new PQueue({ concurrency: 2 })
this.bookmarkLock = new AsyncLock()
this.abortController = new AbortController()
this.abortSignal = this.abortController.signal
Expand Down

0 comments on commit fecfa91

Please sign in to comment.