report delivers the first outcome and drops later ones (the channel is buffered for one; subsequent redirect retries must not block the handler).
(res callbackResult)
| 115 | // report delivers the first outcome and drops later ones (the channel is |
| 116 | // buffered for one; subsequent redirect retries must not block the handler). |
| 117 | func (cs *callbackServer) report(res callbackResult) { |
| 118 | select { |
| 119 | case cs.results <- res: |
| 120 | default: |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | // wait blocks for the callback outcome or ctx cancellation, then shuts the |
| 125 | // server down. It is safe to call once per server. |
no outgoing calls
no test coverage detected