Skip to content

Commit

Permalink
fix(cli-api): decrease default rateLimit (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
oljekechoro authored Mar 19, 2021
1 parent bd6d760 commit 0a5edf0
Show file tree
Hide file tree
Showing 5 changed files with 667 additions and 380 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ buildcache
.rts2_cache_umd

test.js
test-*
2 changes: 1 addition & 1 deletion packages/cli-api/src/main/ts/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { TRateLimit } from './interfaces'

export const defaultRateLimit: TRateLimit = {
period: 1000,
count: 10,
count: 4,
}
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ You can use authorization via token as in example of [deprecation](#deprecationu
# Configuration
You can specify configuration options in `batch` root field of config object.
## Throttling
Utility limits request rate to registry. By default, utility makes maximum 10 requests per second.
Utility limits request rate to registry. By default, utility makes maximum 4 requests per second.
You can specify your own rate limit.
In this example maximum 2 requests per 500 ms will be made.
```text
Expand Down
15 changes: 0 additions & 15 deletions packages/cli/package/package.json

This file was deleted.

Loading

0 comments on commit 0a5edf0

Please sign in to comment.