(r *Request)
| 137 | } |
| 138 | |
| 139 | func (s *Router) dispatch(r *Request) error { |
| 140 | hkey := getHashKey(r.Multi, r.OpStr) |
| 141 | var id = Hash(hkey) % MaxSlotNum |
| 142 | slot := &s.slots[id] |
| 143 | return slot.forward(r, hkey) |
| 144 | } |
| 145 | |
| 146 | func (s *Router) dispatchSlot(r *Request, id int) error { |
| 147 | if id < 0 || id >= MaxSlotNum { |
no test coverage detected