fix moonbeam ratelimit (#269)
This commit is contained in:
parent
45af329b56
commit
c0ec64c749
|
@ -132,6 +132,7 @@ type rateLimitConfig struct {
|
|||
terra int
|
||||
aptos int
|
||||
oasis int
|
||||
moonbeam int
|
||||
}
|
||||
|
||||
func newWatchers(config *config.Configuration, repo *storage.Repository, logger *zap.Logger) []watcher.ContractWatcher {
|
||||
|
@ -207,7 +208,7 @@ func newWatchers(config *config.Configuration, repo *storage.Repository, logger
|
|||
|
||||
// add moonbeam watcher
|
||||
if watchers.moonbeam != nil {
|
||||
moonbeamLimiter := ratelimit.New(watchers.rateLimit.oasis, ratelimit.Per(time.Second))
|
||||
moonbeamLimiter := ratelimit.New(watchers.rateLimit.moonbeam, ratelimit.Per(time.Second))
|
||||
moonbeamClient := evm.NewEvmSDK(config.MoonbeamUrl, moonbeamLimiter)
|
||||
params := watcher.EVMParams{
|
||||
ChainID: watchers.moonbeam.chainID,
|
||||
|
@ -242,6 +243,7 @@ func newEVMWatchersForMainnet() *watchersConfig {
|
|||
terra: 10,
|
||||
aptos: 3,
|
||||
oasis: 3,
|
||||
moonbeam: 5,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -265,6 +267,7 @@ func newEVMWatchersForTestnet() *watchersConfig {
|
|||
terra: 5,
|
||||
aptos: 1,
|
||||
oasis: 1,
|
||||
moonbeam: 2,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue