chore(utils): move Throttler util from blockchain-link to utils

This commit is contained in:
Martin Varmuza
2024-05-24 12:00:22 +02:00
committed by martin
parent b08d5602fb
commit 78673bd14c
4 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
import { createDeferred, createDeferredManager, TypedEmitter } from '@trezor/utils';
import { createDeferred, createDeferredManager, TypedEmitter, Throttler } from '@trezor/utils';
import { CustomError } from '@trezor/blockchain-link-types/src/constants/errors';
import { MESSAGES, RESPONSES } from '@trezor/blockchain-link-types/src/constants';
import { Throttler } from './workers/throttler';
import type { BlockchainSettings } from '@trezor/blockchain-link-types';
import type * as ResponseTypes from '@trezor/blockchain-link-types/src/responses';
import type * as MessageTypes from '@trezor/blockchain-link-types/src/messages';

View File

@@ -41,3 +41,4 @@ export * from './urlToOnion';
export * from './logs';
export * from './logsManager';
export * from './bigNumber';
export * from './throttler';

View File

@@ -1,4 +1,4 @@
import { Throttler } from '../../src/workers/throttler';
import { Throttler } from '../src/throttler';
const delay = (ms: number) => jest.advanceTimersByTime(ms);