MCPcopy Index your code
hub / github.com/github/copilot-sdk / failViaSink

Method failViaSink

go/copilot_request_handler.go:675–687  ·  view source on GitHub ↗
(sink *responseSink, exchange *pendingExchange, message string)

Source from the content-addressed store, hash-verified

673}
674
675func (a *copilotRequestAdapter) failViaSink(sink *responseSink, exchange *pendingExchange, message string) {
676 exchange.mu.Lock()
677 finished := exchange.finished
678 started := exchange.started
679 exchange.mu.Unlock()
680 if finished {
681 return
682 }
683 if !started {
684 _ = sink.start(502, "", http.Header{})
685 }
686 _ = sink.sinkError(message, "")
687}
688
689func (a *copilotRequestAdapter) finishCancelled(sink *responseSink, exchange *pendingExchange) {
690 exchange.mu.Lock()

Callers 1

runHandlerMethod · 0.95

Calls 2

sinkErrorMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected