santaHandler only dispatches nice messages.
| 228 | |
| 229 | // santaHandler only dispatches nice messages. |
| 230 | type santaHandler struct { |
| 231 | naughty atomic.Int32 |
| 232 | nice atomic.Int32 |
| 233 | } |
| 234 | |
| 235 | func (s *santaHandler) Dispatcher(payload types.MessagePayload, _, _ string, _ template.FuncMap) (dispatch.DeliveryFunc, error) { |
| 236 | return func(_ context.Context, _ uuid.UUID) (retryable bool, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected