This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rpc: add rate limit and rpc client manage in dm-master #157
rpc: add rate limit and rpc client manage in dm-master #157
Changes from 13 commits
f4d1a3d
2a44dbc
5b4d354
6507f43
2baedc5
b731a87
6ab4d6c
25f9b59
0823299
5379a34
a34497c
f187d0d
4028455
bd0ef43
ba40a6f
437bd6e
fc3b80c
6d3bc26
f940c59
caf1e10
1e7d535
29c9853
e067772
146e7b9
aab1ddc
6f6375b
97b1420
6c0d022
c70d62a
0e1d64d
789988e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since
defaultRPCTimeout
, maybe we should use it in the description string to make sure it's always in sync with the variable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may use
fs.DurationVar
with&cfg.RPCTimeout
here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need some logic to make sure
cfg.rate
is positive?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add some failing message to explain what's failing.