MCPcopy Index your code
hub / github.com/github/github-mcp-server / report

Method report

internal/oauth/callback.go:117–122  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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).
117func (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.

Callers 2

newCallbackServerFunction · 0.95
handlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected