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

Method dispatchSlot

pkg/proxy/router.go:146–152  ·  view source on GitHub ↗
(r *Request, id int)

Source from the content-addressed store, hash-verified

144}
145
146func (s *Router) dispatchSlot(r *Request, id int) error {
147 if id < 0 || id >= MaxSlotNum {
148 return ErrInvalidSlotId
149 }
150 slot := &s.slots[id]
151 return slot.forward(r, nil)
152}
153
154func (s *Router) dispatchAddr(r *Request, addr string) bool {
155 s.mu.RLock()

Callers 3

handleRequestPingMethod · 0.80
handleRequestInfoMethod · 0.80

Calls 1

forwardMethod · 0.80

Tested by

no test coverage detected