The IRateLimiterProviderFactory contract makes it easy to configure and switch between different IRateLimiterProvider dynamically.
IRateLimiterProviderFactory
IRateLimiterProvider
IMPORT_PATH: "@daiso-tech/core/rate-limiter/contracts"
"@daiso-tech/core/rate-limiter/contracts"
The use method will throw an error if you provide it unregisted adapter. If no default adapter is defined an error will be thrown by use method.
use
Optional
UnregisteredAdapterError
DefaultAdapterNotDefinedError
The
IRateLimiterProviderFactorycontract makes it easy to configure and switch between differentIRateLimiterProviderdynamically.IMPORT_PATH:
"@daiso-tech/core/rate-limiter/contracts"