SetPushSender substitutes the gateway client (a test seam).
(p pushSender)
| 166 | |
| 167 | // SetPushSender substitutes the gateway client (a test seam). |
| 168 | func (s *Server) SetPushSender(p pushSender) { |
| 169 | s.pushDispatch.mu.Lock() |
| 170 | defer s.pushDispatch.mu.Unlock() |
| 171 | s.pushDispatch.sender = p |
| 172 | } |
| 173 | |
| 174 | // resolvePushDispatchSettings fills every unset knob and stores the result, |
| 175 | // so a tick reached directly never sees a zero (the outbox drain's lesson). |