(rate int64, explicit bool)
| 83 | } |
| 84 | |
| 85 | func (ps *ProgressState) SetRateLimit(rate int64, explicit bool) { |
| 86 | ps.mu.Lock() |
| 87 | defer ps.mu.Unlock() |
| 88 | ps.RateLimitBps = rate |
| 89 | ps.RateLimitSet = explicit |
| 90 | } |
| 91 | |
| 92 | func (ps *ProgressState) GetRateLimit() (int64, bool) { |
| 93 | ps.mu.Lock() |
no outgoing calls