MCPcopy
hub / github.com/CodisLabs/codis / NextValue

Method NextValue

pkg/proxy/delay.go:29–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (d *DelayExp2) NextValue() int {
30 d.Value = math2.MinMaxInt(d.Value*2, d.Min, d.Max)
31 return d.Value
32}
33
34func (d *DelayExp2) After() <-chan time.Time {
35 total := d.NextValue()

Callers 3

AfterMethod · 0.95
SleepMethod · 0.95
SleepWithCancelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected