MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / run

Method run

scope.go:1006–1015  ·  view source on GitHub ↗
(done <-chan struct{})

Source from the content-addressed store, hash-verified

1004}
1005
1006func (rl *rateLimiter) run(done <-chan struct{}) {
1007 for {
1008 select {
1009 case <-done:
1010 return
1011 case <-time.After(time.Minute):
1012 rl.store(0)
1013 }
1014 }
1015}
1016
1017type counter struct {
1018 value uint32

Callers 1

restartWithNewConfigMethod · 0.80

Calls 1

storeMethod · 0.80

Tested by

no test coverage detected