mirror of
https://github.com/ZeroDream-CN/SakuraFrp
synced 2024-11-21 15:00:45 +00:00
fix: limit bug
This commit is contained in:
parent
993e9161bf
commit
6eec531a32
@ -161,8 +161,8 @@ func NewControl(rc *controller.ResourceController, pxyManager *proxy.ProxyManage
|
||||
writerShutdown: shutdown.New(),
|
||||
managerShutdown: shutdown.New(),
|
||||
allShutdown: shutdown.New(),
|
||||
inLimit: rate.NewLimiter(rate.Limit(inLimit*limit.KB), limit.BurstLimit),
|
||||
outLimit: rate.NewLimiter(rate.Limit(outLimit*limit.KB), limit.BurstLimit),
|
||||
inLimit: rate.NewLimiter(rate.Limit(inLimit*limit.KB), int(inLimit*limit.KB)),
|
||||
outLimit: rate.NewLimiter(rate.Limit(outLimit*limit.KB), int(outLimit*limit.KB)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user