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

Method SetSlotActionInterval

pkg/topom/topom.go:387–391  ·  view source on GitHub ↗
(us int)

Source from the content-addressed store, hash-verified

385}
386
387func (s *Topom) SetSlotActionInterval(us int) {
388 us = math2.MinMaxInt(us, 0, 1000*1000)
389 s.action.interval.Set(int64(us))
390 log.Warnf("set action interval = %d", us)
391}
392
393func (s *Topom) GetSlotActionDisabled() bool {
394 return s.action.disabled.Bool()

Callers 2

TestApiSlotsFunction · 0.45

Calls 2

WarnfMethod · 0.80
SetMethod · 0.45

Tested by 1

TestApiSlotsFunction · 0.36