MCPcopy Index your code
hub / github.com/cli/cli / sendError

Method sendError

internal/codespaces/connection/tunnels_api_server_mock.go:292–298  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

290}
291
292func (rs *relayServer) sendError(err error) {
293 select {
294 case rs.errc <- err:
295 default:
296 // channel is blocked with a previous error, so we ignore this one
297 }
298}
299
300func (rs *relayServer) ForwardPort(ctx context.Context, port uint16) error {
301 pfr := messages.NewPortForwardRequest("127.0.0.1", uint32(port))

Callers 1

makeConnectionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected