MCPcopy Index your code
hub / github.com/CodisLabs/codis / Close

Method Close

pkg/proxy/router.go:52–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (s *Router) Close() {
53 s.mu.Lock()
54 defer s.mu.Unlock()
55 if s.closed {
56 return
57 }
58 s.closed = true
59
60 for i := range s.slots {
61 s.fillSlot(&models.Slot{Id: i}, false, nil)
62 }
63}
64
65func (s *Router) GetSlots() []*models.Slot {
66 s.mu.RLock()

Callers

nothing calls this directly

Calls 1

fillSlotMethod · 0.95

Tested by

no test coverage detected