MCPcopy
hub / github.com/SurgeDM/Surge / SetRateLimit

Method SetRateLimit

internal/engine/types/progress.go:85–90  ·  view source on GitHub ↗
(rate int64, explicit bool)

Source from the content-addressed store, hash-verified

83}
84
85func (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
92func (ps *ProgressState) GetRateLimit() (int64, bool) {
93 ps.mu.Lock()

Calls

no outgoing calls