mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-05 06:55:13 +01:00
chore(utils): move Throttler util from blockchain-link to utils
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -41,3 +41,4 @@ export * from './urlToOnion';
|
||||
export * from './logs';
|
||||
export * from './logsManager';
|
||||
export * from './bigNumber';
|
||||
export * from './throttler';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Throttler } from '../../src/workers/throttler';
|
||||
import { Throttler } from '../src/throttler';
|
||||
|
||||
const delay = (ms: number) => jest.advanceTimersByTime(ms);
|
||||
|
||||
Reference in New Issue
Block a user