(r *Request, id int)
| 144 | } |
| 145 | |
| 146 | func (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 | |
| 154 | func (s *Router) dispatchAddr(r *Request, addr string) bool { |
| 155 | s.mu.RLock() |
no test coverage detected