mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(git): added git network throttle to limit network related git ops per interval. Closes #1635
This commit is contained in:
parent
9d445ebbd8
commit
d731a6b005
2 changed files with 47 additions and 0 deletions
|
@ -34,6 +34,13 @@ M.defaults = {
|
|||
-- then set the below to false. This should work, but is NOT supported and will
|
||||
-- increase downloads a lot.
|
||||
filter = true,
|
||||
-- rate of network related git operations (clone, fetch, checkout)
|
||||
throttle = {
|
||||
enabled = false, -- not enabled by default
|
||||
-- max 2 ops every 5 seconds
|
||||
rate = 2,
|
||||
duration = 5 * 1000, -- in ms
|
||||
},
|
||||
},
|
||||
pkg = {
|
||||
enabled = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue