mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
style: apply stricter ts lint rules
This commit is contained in:
@@ -16,9 +16,9 @@ import {asyncPool} from '@krlwlfrt/async-pool';
|
||||
import {SCSearchRequest, SCThingType} from '@openstapps/core';
|
||||
import {Bar} from 'cli-progress';
|
||||
import {Client} from './client';
|
||||
import {ConnectorClient} from './connectorClient';
|
||||
import {ConnectorClient} from './connector-client';
|
||||
import {OutOfRangeError} from './errors';
|
||||
import {HttpClientInterface} from './httpClientInterface';
|
||||
import {HttpClientInterface} from './http-client-interface';
|
||||
|
||||
/**
|
||||
* Options to set up copying data from one backend to another
|
||||
@@ -93,7 +93,7 @@ export async function copy(client: HttpClientInterface, options: CopyOptions): P
|
||||
try {
|
||||
({searchRequest, searchResponse} = await apiIn.searchNext(searchRequest, searchResponse));
|
||||
|
||||
await asyncPool(5, searchResponse.data, (item) => {
|
||||
await asyncPool(ConnectorClient.ITEM_CONCURRENT_LIMIT, searchResponse.data, async (item) => {
|
||||
progressBar.increment(1);
|
||||
|
||||
return bulk.add(item);
|
||||
|
||||
Reference in New Issue
Block a user