Merge pull request #2648 from filecoin-project/feat/faucet-rate-limits

faucet: adjust rate limits
This commit is contained in:
Aayush Rajasekaran 2020-07-28 21:25:22 -04:00 committed by GitHub
commit e1288e79c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,16 +154,16 @@ var runCmd = &cli.Command{
from: from, from: from,
sendPerRequest: sendPerRequest, sendPerRequest: sendPerRequest,
limiter: NewLimiter(LimiterConfig{ limiter: NewLimiter(LimiterConfig{
TotalRate: time.Second, TotalRate: 500 * time.Millisecond,
TotalBurst: 256, TotalBurst: build.BlockMessageLimit,
IPRate: time.Minute, IPRate: 10 * time.Minute,
IPBurst: 5, IPBurst: 5,
WalletRate: 15 * time.Minute, WalletRate: 15 * time.Minute,
WalletBurst: 2, WalletBurst: 2,
}), }),
minerLimiter: NewLimiter(LimiterConfig{ minerLimiter: NewLimiter(LimiterConfig{
TotalRate: time.Second, TotalRate: 500 * time.Millisecond,
TotalBurst: 256, TotalBurst: build.BlockMessageLimit,
IPRate: 10 * time.Minute, IPRate: 10 * time.Minute,
IPBurst: 2, IPBurst: 2,
WalletRate: 1 * time.Hour, WalletRate: 1 * time.Hour,